[GRASS-SVN] r64442 - grass/trunk/display/d.mon
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Feb 3 12:52:19 PST 2015
Author: martinl
Date: 2015-02-03 12:52:19 -0800 (Tue, 03 Feb 2015)
New Revision: 64442
Modified:
grass/trunk/display/d.mon/start.c
Log:
d.mon: fix starting wx-monitors
Modified: grass/trunk/display/d.mon/start.c
===================================================================
--- grass/trunk/display/d.mon/start.c 2015-02-03 20:51:39 UTC (rev 64441)
+++ grass/trunk/display/d.mon/start.c 2015-02-03 20:52:19 UTC (rev 64442)
@@ -73,8 +73,7 @@
}
/* start wxGUI display monitor */
-char *start_wx(const char *name, const char *element,
- int width, int height, int x_only)
+char *start_wx(const char *name, const char *element, int width, int height, int x_only)
{
char progname[GPATH_MAX];
char str_width[1024], str_height[1024], *str_x_only;
@@ -191,10 +190,13 @@
close(fd);
/* start monitor */
- if (strncmp(name, "wx", 2) == 0)
- out_file = start_wx(name, mon_path, width, height, x_only);
- else
+ if (strncmp(name, "wx", 2) == 0) {
+ G_file_name(file_path, mon_path, NULL, G_mapset());
+ out_file = start_wx(name, file_path, width, height, x_only);
+ }
+ else {
out_file = start(name, output, update);
+ }
/* create env file (environmental variables used for rendering) */
G_debug(1, "Monitor name=%s, envfile=%s", name, env_file);
More information about the grass-commit
mailing list