[GRASS-SVN] r32076 - in grass/trunk/gui/wxpython: gui_modules vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 11 11:48:51 EDT 2008
Author: martinl
Date: 2008-07-11 11:48:51 -0400 (Fri, 11 Jul 2008)
New Revision: 32076
Modified:
grass/trunk/gui/wxpython/gui_modules/nviz.py
grass/trunk/gui/wxpython/vdigit/digit.cpp
grass/trunk/gui/wxpython/vdigit/driver.cpp
Log:
wxGUI/vdigit: do not crash when LC_CNUMERIC != C, related to trac #225
Modified: grass/trunk/gui/wxpython/gui_modules/nviz.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz.py 2008-07-11 12:26:52 UTC (rev 32075)
+++ grass/trunk/gui/wxpython/gui_modules/nviz.py 2008-07-11 15:48:51 UTC (rev 32076)
@@ -1,4 +1,5 @@
-"""@package nviz.py
+"""
+ at package nviz.py
@brief 2.5/3D visialization mode for Map Display Window
Modified: grass/trunk/gui/wxpython/vdigit/digit.cpp
===================================================================
--- grass/trunk/gui/wxpython/vdigit/digit.cpp 2008-07-11 12:26:52 UTC (rev 32075)
+++ grass/trunk/gui/wxpython/vdigit/digit.cpp 2008-07-11 15:48:51 UTC (rev 32076)
@@ -14,6 +14,8 @@
\date 2008
*/
+#include <clocale>
+
#include "driver.h"
#include "digit.h"
@@ -24,6 +26,8 @@
*/
Digit::Digit(DisplayDriver *ddriver)
{
+ setlocale(LC_NUMERIC, "C");
+
display = ddriver;
if (display->mapInfo) {
Modified: grass/trunk/gui/wxpython/vdigit/driver.cpp
===================================================================
--- grass/trunk/gui/wxpython/vdigit/driver.cpp 2008-07-11 12:26:52 UTC (rev 32075)
+++ grass/trunk/gui/wxpython/vdigit/driver.cpp 2008-07-11 15:48:51 UTC (rev 32076)
@@ -17,6 +17,7 @@
*/
#include <cmath>
+#include <clocale>
#include "driver.h"
@@ -31,6 +32,8 @@
*/
DisplayDriver::DisplayDriver(void *device)
{
+ setlocale(LC_NUMERIC, "C");
+
G_gisinit(""); /* GRASS functions */
mapInfo = NULL;
More information about the grass-commit
mailing list