r16715 by jghali - #10137: infinite recursion in ScrSpinBox on FreeBSD

scribus-commit scribus-commit at lists.scribus.net
Sat Jul 16 12:26:31 UTC 2011


Author: jghali
Date: Sat Jul 16 12:26:31 2011
New Revision: 16715

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=16715
Log:
#10137: infinite recursion in ScrSpinBox on FreeBSD

Modified:
    branches/Version135/Scribus/scribus/scclocale.cpp

Modified: branches/Version135/Scribus/scribus/scclocale.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=16715&path=/branches/Version135/Scribus/scribus/scclocale.cpp
==============================================================================
--- branches/Version135/Scribus/scribus/scclocale.cpp (original)
+++ branches/Version135/Scribus/scribus/scclocale.cpp Sat Jul 16 12:26:31 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