[GRASS-SVN] r74450 - in grass/trunk/gui/wxpython: gui_core mapdisp

svn_grass at osgeo.org svn_grass at osgeo.org
Thu May 2 02:13:50 PDT 2019


Author: martinl
Date: 2019-05-02 02:13:50 -0700 (Thu, 02 May 2019)
New Revision: 74450

Modified:
   grass/trunk/gui/wxpython/gui_core/vselect.py
   grass/trunk/gui/wxpython/mapdisp/frame.py
Log:
wxgui: use fully-qualified name when querying vector maps (causes failure when adding vector map not in search path)

Modified: grass/trunk/gui/wxpython/gui_core/vselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_core/vselect.py	2019-05-02 08:29:09 UTC (rev 74449)
+++ grass/trunk/gui/wxpython/gui_core/vselect.py	2019-05-02 09:13:50 UTC (rev 74450)
@@ -244,7 +244,9 @@
         self.updateLayer.emit()
         if len(self.selectedFeatures) > 0:
             self.painter.SetLayer(self.selectedFeatures[0]['Layer'])
-            self.painter.SetMap(self.selectedFeatures[0]['Map'])
+            self.painter.SetMap(
+                self.selectedFeatures[0]['Map'] + '@' + self.selectedFeatures[0]['Mapset']
+            )
             tmp = list()
             for i in self.selectedFeatures:
                 tmp.append(i['Category'])

Modified: grass/trunk/gui/wxpython/mapdisp/frame.py
===================================================================
--- grass/trunk/gui/wxpython/mapdisp/frame.py	2019-05-02 08:29:09 UTC (rev 74449)
+++ grass/trunk/gui/wxpython/mapdisp/frame.py	2019-05-02 09:13:50 UTC (rev 74450)
@@ -999,7 +999,9 @@
         """Highlight category from query."""
         if len(vectQuery) > 0:
             self._highlighter_layer.SetLayer(vectQuery[0]['Layer'])
-            self._highlighter_layer.SetMap(vectQuery[0]['Map'])
+            self._highlighter_layer.SetMap(
+                vectQuery[0]['Map'] + '@' + vectQuery[0]['Mapset']
+            )
             tmp = list()
             for i in vectQuery:
                 tmp.append(i['Category'])
@@ -1061,17 +1063,14 @@
 
         pattern = [
             "d.vect",
-            "map=%s" %
-            name,
-            "color=%s" %
-            colorStr,
-            "fill_color=%s" %
-            colorStr,
-            "width=%d" %
-            UserSettings.Get(
+            "map=%s" % name,
+            "color=%s" % colorStr,
+            "fill_color=%s" % colorStr,
+            "width=%d" % UserSettings.Get(
                 group='atm',
                 key='highlight',
-                subkey='width')]
+                subkey='width')
+        ]
         if icon != '':
             pattern.append('icon=%s' % icon)
         if size > 0:



More information about the grass-commit mailing list