[GRASS-SVN] r72564 - grass/branches/releasebranch_7_4/gui/wxpython/dbmgr

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Mar 25 04:09:30 PDT 2018


Author: martinl
Date: 2018-03-25 04:09:30 -0700 (Sun, 25 Mar 2018)
New Revision: 72564

Modified:
   grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py
Log:
wxGUI/dbmgr: fix Go To
             (merge r72553 from trunk)


Modified: grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py	2018-03-25 11:08:39 UTC (rev 72563)
+++ grass/branches/releasebranch_7_4/gui/wxpython/dbmgr/sqlbuilder.py	2018-03-25 11:09:30 UTC (rev 72564)
@@ -428,7 +428,12 @@
         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



More information about the grass-commit mailing list