r18150 by jghali - #11411: Page import positions badly content of imported page

scribus-commit scribus-commit at lists.scribus.net
Mon Feb 18 20:50:58 UTC 2013


Author: jghali
Date: Mon Feb 18 20:50:57 2013
New Revision: 18150

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18150
Log:
#11411: Page import positions badly content of imported page

Modified:
    trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
    trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp

Modified: trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18150&path=/trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus134format/scribus134format.cpp Mon Feb 18 20:50:57 2013
@@ -3219,8 +3219,8 @@
 			newPage->marginPreset = attrs.valueAsInt("PRESET", 0);
 			newPage->Margins.Top = newPage->initialMargins.Top;
 			newPage->Margins.Bottom = newPage->initialMargins.Bottom;
-			pageX = attrs.valueAsDouble( attrs.valueAsString("PAGEXPOS"));
-			pageY = attrs.valueAsDouble( attrs.valueAsString("PAGEYPOS"));
+			pageX = attrs.valueAsDouble("PAGEXPOS");
+			pageY = attrs.valueAsDouble("PAGEYPOS");
 			// guides reading
 			tmp = "";
 			newPage->guides.setHorizontalAutoGap(attrs.valueAsDouble("AGhorizontalAutoGap", 0.0));

Modified: trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18150&path=/trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp
==============================================================================
--- trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp (original)
+++ trunk/Scribus/scribus/plugins/fileloader/scribus150format/scribus150format.cpp Mon Feb 18 20:50:57 2013
@@ -5753,8 +5753,8 @@
 			newPage->marginPreset = attrs.valueAsInt("PRESET", 0);
 			newPage->Margins.Top = newPage->initialMargins.Top;
 			newPage->Margins.Bottom = newPage->initialMargins.Bottom;
-			pageX = attrs.valueAsDouble( attrs.valueAsString("PAGEXPOS"));
-			pageY = attrs.valueAsDouble( attrs.valueAsString("PAGEYPOS"));
+			pageX = attrs.valueAsDouble("PAGEXPOS");
+			pageY = attrs.valueAsDouble("PAGEYPOS");
 
 			// guides reading
 			newPage->guides.setHorizontalAutoGap(attrs.valueAsDouble("AGhorizontalAutoGap", 0.0));




More information about the scribus-commit mailing list