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

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


Revision: 14529
Author: jghali
Date: 2010-01-17T01:58:14.074617Z
Commit message: #8716: fix reloading of blur parameters in effects dialog

Changeset: 
M  /trunk/Scribus/scribus/ui/effectsdialog.cpp

Diffs:
Index: scribus/ui/effectsdialog.cpp
===================================================================
--- scribus/ui/effectsdialog.cpp	(revision 14528)
+++ scribus/ui/effectsdialog.cpp	(revision 14529)
@@ -542,10 +542,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