r18191 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:22:52 UTC 2013
Author: jghali
Date: Sat Mar 9 21:22:51 2013
New Revision: 18191
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=18191
Log:
scrspinbox : in case of wrong input, fallback to the original value instead of just 0.0
Modified:
branches/Version14x/Scribus/scribus/scrspinbox.cpp
Modified: branches/Version14x/Scribus/scribus/scrspinbox.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=18191&path=/branches/Version14x/Scribus/scribus/scrspinbox.cpp
==============================================================================
--- branches/Version14x/Scribus/scribus/scrspinbox.cpp (original)
+++ branches/Version14x/Scribus/scribus/scrspinbox.cpp Sat Mar 9 21:22:51 2013
@@ -227,7 +227,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