浏览代码

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