[GRASS-SVN] r32063 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Jul 9 17:22:25 EDT 2008
Author: martinl
Date: 2008-07-09 17:22:25 -0400 (Wed, 09 Jul 2008)
New Revision: 32063
Modified:
grass/trunk/gui/wxpython/nviz/init.cpp
Log:
nviz2/wxGUI: fix nviz extension crashing (locales-related)
Modified: grass/trunk/gui/wxpython/nviz/init.cpp
===================================================================
--- grass/trunk/gui/wxpython/nviz/init.cpp 2008-07-09 13:39:13 UTC (rev 32062)
+++ grass/trunk/gui/wxpython/nviz/init.cpp 2008-07-09 21:22:25 UTC (rev 32063)
@@ -15,6 +15,9 @@
\date 2008
*/
+
+#include <clocale>
+
#include "nviz.h"
static void swap_gl();
@@ -24,6 +27,8 @@
*/
Nviz::Nviz()
{
+ setlocale(LC_NUMERIC, "C");
+
G_gisinit(""); /* GRASS functions */
G_set_verbose(0); // TODO: read progress info
More information about the grass-commit
mailing list