[GRASS-SVN] r72973 - grass/branches/releasebranch_7_4/gui/wxpython/nviz
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jul 10 11:27:54 PDT 2018
Author: annakrat
Date: 2018-07-10 11:27:54 -0700 (Tue, 10 Jul 2018)
New Revision: 72973
Modified:
grass/branches/releasebranch_7_4/gui/wxpython/nviz/mapwindow.py
Log:
wxGUI: fix m.nviz.image command building (merge from trunk, r72972)
Modified: grass/branches/releasebranch_7_4/gui/wxpython/nviz/mapwindow.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/nviz/mapwindow.py 2018-07-10 18:26:21 UTC (rev 72972)
+++ grass/branches/releasebranch_7_4/gui/wxpython/nviz/mapwindow.py 2018-07-10 18:27:54 UTC (rev 72973)
@@ -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