Parcourir la source

wxGUI/mapswipe: minor fix

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54233 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová il y a 12 ans
Parent
commit
cedad54fbc
2 fichiers modifiés avec 2 ajouts et 3 suppressions
  1. 1 0
      gui/wxpython/lmgr/frame.py
  2. 1 3
      gui/wxpython/mapswipe/frame.py

+ 1 - 0
gui/wxpython/lmgr/frame.py

@@ -447,6 +447,7 @@ class GMFrame(wx.Frame):
             win.SetFirstRaster(rasters[0])
         if len(rasters) >= 2:
             win.SetSecondRaster(rasters[1])
+            win.SetRasterNames()
 
         win.CentreOnScreen()
         win.Show()

+ 1 - 3
gui/wxpython/mapswipe/frame.py

@@ -527,9 +527,7 @@ class SwipeMapFrame(DoubleMapFrame):
         return self.toolbars['swipeMap']
 
     def IsStandalone(self):
-        if self.parent:
-            return False
-
+        """!Since we do not need layer manager, we are standalone"""
         return True
 
     def OnHelp(self, event):