浏览代码

wxGUI/gui_core: fix open map display overlay settings dialog (#2065)

The MapPanelBase class is inherited from wx.Panel class which init
method has name param arg. It is handled in the TaskFrame class
OnCancel method in gui_core/forms.py script, for not destroy (hide
only) overlay dialog after the overlay is first added to the map.
Tomas Zigo 3 年之前
父节点
当前提交
258918e401
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_core/mapdisp.py

+ 1 - 1
gui/wxpython/gui_core/mapdisp.py

@@ -81,7 +81,7 @@ class MapPanelBase(wx.Panel):
 
         self.parent = parent
 
-        wx.Panel.__init__(self, parent, id, **kwargs)
+        wx.Panel.__init__(self, parent, id, name=name, **kwargs)
 
         # toolbars
         self.toolbars = {}