Jelajahi Sumber

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 tahun lalu
induk
melakukan
258918e401
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  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 = {}