View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002273 | Scribus | Internal | public | 2005-07-20 22:57 | 2005-11-06 00:23 |
| Reporter | jghali | Assigned To | cbradney | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | Windows | OS | Windows | OS Version | 2000 SP4 |
| Product Version | 1.3.1cvs | ||||
| Fixed in Version | 1.3.2cvs | ||||
| Summary | 0002273: Load correctly document located at drive root (win32) | ||||
| Description | I added a few line to ScribusApp::loadDoc to allow Scribus to load correctly documents located at drive root | ||||
| Tags | No tags attached. | ||||
| Attached Files | loaddoc_at_drive_root.diff (933 bytes)
cvs diff -u -- scribus.cpp (in directory E:\Scribus For Windows\scribus-1.3.x-cvs\Scribus\scribus\)
cvs diff: Empty password used - try 'cvs login' with a real password
Index: scribus.cpp
===================================================================
RCS file: /cvs/Scribus/scribus/scribus.cpp,v
retrieving revision 1.228.2.608
diff -u -r1.228.2.608 scribus.cpp
--- scribus.cpp 5 Nov 2005 00:16:29 -0000 1.228.2.608
+++ scribus.cpp 5 Nov 2005 20:04:10 -0000
@@ -3587,7 +3591,12 @@
if (!fileName.isEmpty())
{
QString FName = fi.absFilePath();
- QDir::setCurrent(fi.dirPath(true));
+ QString DPath = fi.dirPath(true);
+ // Necessary on win32 platform for setCurrent() to succeed
+ // if document is located at drive root
+ if( !DPath.endsWith("/") )
+ DPath += "/";
+ QDir::setCurrent(DPath);
FileLoader *fileLoader = new FileLoader(FName);
if (fileLoader->TestFile() == -1)
{
| ||||
| Patch | |||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2005-07-20 22:57 | jghali | New Issue | |
| 2005-07-20 22:57 | jghali | File Added: loaddoc_at_drive_root.diff | |
| 2005-07-21 08:19 | mhanski | Relationship added | child of 0000015 |
| 2005-11-05 23:46 | jghali | File Deleted: loaddoc_at_drive_root.diff | |
| 2005-11-05 23:46 | jghali | File Added: loaddoc_at_drive_root.diff | |
| 2005-11-05 23:49 | cbradney | Status | new => assigned |
| 2005-11-05 23:49 | cbradney | Assigned To | => cbradney |
| 2005-11-05 23:54 | cbradney | Status | assigned => resolved |
| 2005-11-05 23:54 | cbradney | Fixed in Version | => 1.3.2cvs |
| 2005-11-05 23:54 | cbradney | Resolution | open => fixed |
| 2005-11-06 00:23 | cbradney | Status | resolved => closed |