فهرست منبع

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

Anna Petrasova 5 سال پیش
والد
کامیت
60f4fe42dd
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  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