[GRASS-SVN] r58422 - grass/trunk/gui/wxpython/vdigit

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Dec 9 02:46:01 PST 2013


Author: martinl
Date: 2013-12-09 02:46:01 -0800 (Mon, 09 Dec 2013)
New Revision: 58422

Modified:
   grass/trunk/gui/wxpython/vdigit/wxdisplay.py
Log:
wxGUI/vdigit: fix selecting areas

Modified: grass/trunk/gui/wxpython/vdigit/wxdisplay.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdisplay.py	2013-12-09 00:59:16 UTC (rev 58421)
+++ grass/trunk/gui/wxpython/vdigit/wxdisplay.py	2013-12-09 10:46:01 UTC (rev 58422)
@@ -245,8 +245,19 @@
         
         Debug.msg(1, "_drawObject(): line=%d type=%d npoints=%d", robj.fid, robj.type, robj.npoints)
         brush = None
-        if self._isSelected(robj.fid):
+        if robj.type == TYPE_AREA and \
+                self._isSelected(Vect_get_area_centroid(self.poMapInfo, robj.fid)):
             pdc = self.dcTmp
+
+            pen = wx.TRANSPARENT_PEN
+            brush = wx.TRANSPARENT_BRUSH
+            
+            dcId = 1
+            self.topology['highlight'] += 1
+            if not self._drawSelected:
+                return
+        elif robj.type != TYPE_AREA and self._isSelected(robj.fid):
+            pdc = self.dcTmp
             if self.settings['highlightDupl']['enabled'] and self._isDuplicated(robj.fid):
                 pen = wx.Pen(self.settings['highlightDupl']['color'], self.settings['lineWidth'], wx.SOLID)
             else:            



More information about the grass-commit mailing list