Browse Source

wxGUI: fix m.nviz.image command building

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72972 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 6 years ago
parent
commit
eb65447fb5
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gui/wxpython/nviz/mapwindow.py

+ 2 - 1
gui/wxpython/nviz/mapwindow.py

@@ -2623,9 +2623,10 @@ class GLWindow(MapWindowBase, glcanvas.GLCanvas):
             cmd += subcmd
             cmd += subcmd
 
 
         # output
         # output
+        width, height = self.GetClientSize()
         subcmd = 'output=nviz_output '
         subcmd = 'output=nviz_output '
         subcmd += 'format=ppm '
         subcmd += 'format=ppm '
-        subcmd += 'size=%d,%d ' % self.GetClientSize()
+        subcmd += 'size=%d,%d ' % (width, height)
         cmd += subcmd
         cmd += subcmd
 
 
         return cmd
         return cmd