r16716 by jghali - #10137: infinite recursion in ScrSpinBox on FreeBSD
scribus-commit
scribus-commit at lists.scribus.net
Sat Jul 16 12:27:19 UTC 2011
Author: jghali
Date: Sat Jul 16 12:27:19 2011
New Revision: 16716
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16716
Log:
#10137: infinite recursion in ScrSpinBox on FreeBSD
Modified:
trunk/Scribus/scribus/scclocale.cpp
Modified: trunk/Scribus/scribus/scclocale.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16716&path=/trunk/Scribus/scribus/scclocale.cpp
==============================================================================
--- trunk/Scribus/scribus/scclocale.cpp (original)
+++ trunk/Scribus/scribus/scclocale.cpp Sat Jul 16 12:27:19 2011
@@ -99,7 +99,7 @@
// a sade workaround
double result(0.0);
setlocale(LC_NUMERIC, "C");
- result = strtod(str, endptr);
+ result = std::strtod(str, endptr);
setlocale(LC_NUMERIC, "");
return result;
}
@@ -112,7 +112,7 @@
char *oldlocale=setlocale(LC_NUMERIC, NULL);
double result(0.0);
setlocale(LC_NUMERIC, "C");
- result = strtod(str, endptr);
+ result = std::strtod(str, endptr);
setlocale(LC_NUMERIC, oldlocale);
return result;
#else
More information about the scribus-commit
mailing list