Browse Source

wxGUI preferences: fix load epsg codes (#545)

Tomas Zigo 5 năm trước cách đây
mục cha
commit
f5d6c70346
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      gui/wxpython/gui_core/preferences.py

+ 3 - 3
gui/wxpython/gui_core/preferences.py

@@ -981,7 +981,7 @@ class PreferencesDialog(PreferencesBaseDialog):
 
         gridSizer.Add(showCompExtent,
                       pos=(row, 0), span=(1, 2))
-        
+
         #
         # mouse wheel zoom
         #
@@ -1418,7 +1418,7 @@ class PreferencesDialog(PreferencesBaseDialog):
             hlWidth, pos=(row, col + 1),
             span=(1, 2),
             flag=wx.ALIGN_RIGHT)
-        
+
         # random colors
         row +=1
         randomColors = wx.CheckBox(parent=panel, id=wx.ID_ANY, label=_(
@@ -1926,7 +1926,7 @@ class PreferencesDialog(PreferencesBaseDialog):
             wx.EndBusyCursor()
             return
 
-        choices = map(str, sorted(self.epsgCodeDict.keys()))
+        choices = list(map(str, sorted(self.epsgCodeDict.keys())))
 
         epsgCombo.SetItems(choices)
         wx.EndBusyCursor()