View Issue Details

IDProjectCategoryView StatusLast Update
0002273ScribusInternalpublic2005-11-06 00:23
Reporterjghali Assigned Tocbradney  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
PlatformWindowsOSWindowsOS Version2000 SP4
Product Version1.3.1cvs 
Fixed in Version1.3.2cvs 
Summary0002273: Load correctly document located at drive root (win32)
DescriptionI added a few line to ScribusApp::loadDoc to allow Scribus to load correctly documents located at drive root
TagsNo tags attached.
Patch

Relationships

child of 0000015 closedjghali Windows Port 

Activities

2005-11-05 23:46

 

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)
 		{


loaddoc_at_drive_root.diff (933 bytes)   

Issue History

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