r18192 by jghali - scrspinbox : in case of wrong input, fallback to the original value instead of just 0.0

scribus-commit scribus-commit at lists.scribus.net
Sat Mar 9 21:23:34 UTC 2013


Author: jghali
Date: Sat Mar  9 21:23:33 2013
New Revision: 18192

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18192
Log:
scrspinbox : in case of wrong input, fallback to the original value instead of just 0.0

Modified:
    trunk/Scribus/scribus/ui/scrspinbox.cpp

Modified: trunk/Scribus/scribus/ui/scrspinbox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18192&path=/trunk/Scribus/scribus/ui/scrspinbox.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/scrspinbox.cpp (original)
+++ trunk/Scribus/scribus/ui/scrspinbox.cpp Sat Mar  9 21:23:33 2013
@@ -244,7 +244,7 @@
 	}
 //	qDebug() << "TS"<<ts;
 	std::string str(ts.toLocal8Bit().data());
-	double erg(0.0);
+	double erg = this->value();
 
 	int ret = fp.Parse(str, "", true);
 	if(ret < 0)




More information about the scribus-commit mailing list