ソースを参照

wxGUI: bug fix - trac https://trac.osgeo.org/grass/ticket/299 - wxGUI fails to handle illegal region extent
(merge from devbr6, https://trac.osgeo.org/grass/changeset/33308)


git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33309 15284696-431f-4ddb-bdfa-cd5b030d7da7

Martin Landa 16 年 前
コミット
7a583241b3
1 ファイル変更3 行追加3 行削除
  1. 3 3
      gui/wxpython/gui_modules/mapdisp.py

+ 3 - 3
gui/wxpython/gui_modules/mapdisp.py

@@ -2309,9 +2309,9 @@ class BufferedWindow(MapWindow, wx.Window):
                      "s=%f"    % new['s'],
                      "e=%f"    % new['e'],
                      "w=%f"    % new['w'],
-                     "rows=%f" % new['rows'],
-                     "cols=%f" % new['cols']]
-
+                     "rows=%d" % int(new['rows']),
+                     "cols=%d" % int(new['cols'])]
+        
         p = gcmd.Command(cmdRegion)
 
         if tmpreg: