r14333 by cbradney - Fix incorrect saving of displacement pref value

scribus-commit scribus-commit at lists.scribus.net
Mon Nov 23 13:15:18 CET 2009


Revision: 14333
Author: cbradney
Date: 2009-11-23T03:09:25.812748Z
Commit message: Fix incorrect saving of displacement pref value

Changeset: 
M  /branches/Version135/Scribus/scribus/prefs.cpp

Diffs:
Index: scribus/prefs.cpp
===================================================================
--- scribus/prefs.cpp	(revision 14332)
+++ scribus/prefs.cpp	(revision 14333)
@@ -546,8 +546,8 @@
 	if (tabTools->checkHalfRes->isChecked())
 		haRes = 2;
 	prefsManager->appPrefs.toolSettings.lowResType = haRes;
-	prefsManager->appPrefs.toolSettings.dispX = tabTools->genDispX->value();
-	prefsManager->appPrefs.toolSettings.dispY = tabTools->genDispY->value();
+	prefsManager->appPrefs.toolSettings.dispX = tabTools->genDispX->value() / unitRatio;
+	prefsManager->appPrefs.toolSettings.dispY = tabTools->genDispY->value() / unitRatio;
 	prefsManager->appPrefs.toolSettings.constrain = tabTools->genRot->value();
 	prefsManager->appPrefs.AutoSave = tabDocument->GroupAS->isChecked();
 	prefsManager->appPrefs.AutoSaveTime = tabDocument->ASTime->value() * 60 * 1000;




More information about the scribus-commit mailing list