Pārlūkot izejas kodu

wxGUI/Single-Window: Ensure a display tab is visible when a new display added (#1830)

Linda Kladivova 3 gadi atpakaļ
vecāks
revīzija
6bae97cab0
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      gui/wxpython/main_window/frame.py

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

@@ -390,6 +390,7 @@ class GMFrame(wx.Frame):
         self.notebookLayers.AddPage(page=self.pg_panel, text=name, select=True)
         self.currentPage = self.notebookLayers.GetCurrentPage()
         self.currentPageNum = self.notebookLayers.GetSelection()
+        self.notebookLayers.EnsureVisible(self.currentPageNum)
 
         def CreateNewMapDisplay(layertree):
             """Callback function which creates a new Map Display window