瀏覽代碼

wxGUI: Map Composer: fixed bug - don't select anything when list of images is empty

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@49340 15284696-431f-4ddb-bdfa-cd5b030d7da7
Anna Petrášová 13 年之前
父節點
當前提交
b816bade05
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_modules/psmap_dialogs.py

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

@@ -5864,7 +5864,7 @@ class ImageDialog(PsmapDialog):
         if self.imageDict['epsfile']:
             file = os.path.basename(self.imageDict['epsfile'])
             self.imagePanel.image['list'].SetStringSelection(file)
-        else:
+        elif imageList:
             self.imagePanel.image['list'].SetSelection(0)
         self.OnImageSelectionChanged(None)