r14528 by jghali - #8716: fix reloading of blur parameters in effects dialog

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 17 16:45:16 CET 2010


Revision: 14528
Author: jghali
Date: 2010-01-17T01:57:23.691415Z
Commit message: #8716: fix reloading of blur parameters in effects dialog 

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

Diffs:
Index: scribus/effectsdialog.cpp
===================================================================
--- scribus/effectsdialog.cpp	(revision 14527)
+++ scribus/effectsdialog.cpp	(revision 14528)
@@ -541,10 +541,9 @@
 		{
 			usedEffects->addItem( tr("Blur"));
 			QString tmpstr = effectsList.at(a).effectParameters;
-			double radius = ScCLocale::toDoubleC(tmpstr);
-			// surely we dont need to do it this way, do we? - av
-			//ScTextStream fp(&tmpstr, QIODevice::ReadOnly);
-			//fp >> radius;
+			double radius;
+			ScTextStream fp(&tmpstr, QIODevice::ReadOnly);
+			fp >> radius; // has to be read from stream, as two numbers are stored in effectParameters
 			blRadius->setValue(radius / imageScale);
 			effectValMap.insert(usedEffects->item(usedEffects->count()-1), QString("%1 1.0").arg(radius / imageScale));
 		}




More information about the scribus-commit mailing list