Selaa lähdekoodia

wxGUI/vdigit: fix selecting areas

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58422 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 vuotta sitten
vanhempi
commit
49af451ee1
1 muutettua tiedostoa jossa 12 lisäystä ja 1 poistoa
  1. 12 1
      gui/wxpython/vdigit/wxdisplay.py

+ 12 - 1
gui/wxpython/vdigit/wxdisplay.py

@@ -245,7 +245,18 @@ class DisplayDriver:
         
         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)