Pārlūkot izejas kodu

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

Anna Petrasova 5 gadi atpakaļ
vecāks
revīzija
211c665bf3
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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