瀏覽代碼

Fix/workaround to permit histogram properties panel to be canceled/closed.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@33108 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 16 年之前
父節點
當前提交
c44bfa6f48
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_modules/menuform.py

+ 1 - 1
gui/wxpython/gui_modules/menuform.py

@@ -829,7 +829,7 @@ class mainFrame(wx.Frame):
         if self.get_dcmd:
             # display decorations and 
             # pressing OK or cancel after setting layer properties
-            if self.task.name == 'd.barscale' or self.task.name == 'd.legend' \
+            if self.task.name in ['d.barscale','d.legend','d.histogram'] \
                 or len(self.parent.GetPyData(self.layer)[0]['cmd']) >= 1:
                 self.Hide()
             # canceled layer with nothing set