[GRASS-SVN] r72972 - grass/trunk/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 10 11:26:21 PDT 2018
Author: annakrat
Date: 2018-07-10 11:26:21 -0700 (Tue, 10 Jul 2018)
New Revision: 72972
Modified:
grass/trunk/gui/wxpython/nviz/mapwindow.py
Log:
wxGUI: fix m.nviz.image command building
Modified: grass/trunk/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/trunk/gui/wxpython/nviz/mapwindow.py 2018-07-10 16:48:10 UTC (rev 72971)
+++ grass/trunk/gui/wxpython/nviz/mapwindow.py 2018-07-10 18:26:21 UTC (rev 72972)
@@ -2623,9 +2623,10 @@
cmd += subcmd
# output
+ width, height = self.GetClientSize()
subcmd = 'output=nviz_output '
subcmd += 'format=ppm '
- subcmd += 'size=%d,%d ' % self.GetClientSize()
+ subcmd += 'size=%d,%d ' % (width, height)
cmd += subcmd
return cmd
More information about the grass-commit
mailing list