[GRASS-SVN] r72553 - grass/trunk/gui/wxpython/dbmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 24 04:33:59 PDT 2018
Author: martinl
Date: 2018-03-24 04:33:59 -0700 (Sat, 24 Mar 2018)
New Revision: 72553
Modified:
grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
Log:
wxGUI/dbmgr: fix Go To
Modified: grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py
===================================================================
--- grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2018-03-24 11:32:54 UTC (rev 72552)
+++ grass/trunk/gui/wxpython/dbmgr/sqlbuilder.py 2018-03-24 11:33:59 UTC (rev 72553)
@@ -430,7 +430,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