浏览代码

wxGUI/dbmgr: fix Go To

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@72553 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 7 年之前
父节点
当前提交
e4177583f0
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      gui/wxpython/dbmgr/sqlbuilder.py

+ 5 - 0
gui/wxpython/dbmgr/sqlbuilder.py

@@ -430,7 +430,12 @@ class SQLBuilder(wx.Frame):
         gotoText = event.GetString()
         lenLimit = len(gotoText)
         found = idx = 0
+        string = False
         for item in self.list_values.GetItems():
+            if idx == 0 and item.startswith("'"):
+                string = True
+            if string:
+                item = item[1:-1] # strip "'"
             if item[:lenLimit] == gotoText:
                 found = idx
                 break