Explorar o código

wxGUI: fix wizard, https://trac.osgeo.org/grass/ticket/3981

Anna Petrasova %!s(int64=5) %!d(string=hai) anos
pai
achega
211c665bf3
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      gui/wxpython/location_wizard/dialogs.py

+ 1 - 1
gui/wxpython/location_wizard/dialogs.py

@@ -567,7 +567,7 @@ class TransList(wx.VListBox):
     def OnMeasureItem(self, n):
         height = 0
         if self._getItemText(n) is None:
-            return
+            return height
         for line in self._getItemText(n).splitlines():
             w, h = self.GetTextExtent(line)
             height += h