[GRASS-SVN] r50038 - in grass/trunk: gui/wxpython/vdigit
lib/vector/vedit
svn_grass at osgeo.org
svn_grass at osgeo.org
Mon Jan 2 14:10:25 EST 2012
Author: martinl
Date: 2012-01-02 11:10:25 -0800 (Mon, 02 Jan 2012)
New Revision: 50038
Modified:
grass/trunk/gui/wxpython/vdigit/wxdisplay.py
grass/trunk/lib/vector/vedit/render.c
Log:
wxGUI: don't fill selected areas
Modified: grass/trunk/gui/wxpython/vdigit/wxdisplay.py
===================================================================
--- grass/trunk/gui/wxpython/vdigit/wxdisplay.py 2012-01-02 18:04:34 UTC (rev 50037)
+++ grass/trunk/gui/wxpython/vdigit/wxdisplay.py 2012-01-02 19:10:25 UTC (rev 50038)
@@ -243,11 +243,14 @@
brush = None
if 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:
- pen = wx.Pen(self.settings['highlight'], self.settings['lineWidth'], wx.SOLID)
-
+ if robj.type == TYPE_AREA:
+ return 1
+ else:
+ if self.settings['highlightDupl']['enabled'] and self._isDuplicated(robj.fid):
+ pen = wx.Pen(self.settings['highlightDupl']['color'], self.settings['lineWidth'], wx.SOLID)
+ else:
+ pen = wx.Pen(self.settings['highlight'], self.settings['lineWidth'], wx.SOLID)
+
dcId = 1
self.topology['highlight'] += 1
if not self._drawSelected:
Modified: grass/trunk/lib/vector/vedit/render.c
===================================================================
--- grass/trunk/lib/vector/vedit/render.c 2012-01-02 18:04:34 UTC (rev 50037)
+++ grass/trunk/lib/vector/vedit/render.c 2012-01-02 19:10:25 UTC (rev 50038)
@@ -467,6 +467,7 @@
/* get area's boundary */
Vect_get_area_points(Map, area, state.Points);
robj = robj_alloc(TYPE_AREA, state.Points->n_points);
+ robj->fid = centroid;
robj_points(robj, state.Points);
list_append(list, robj);
@@ -479,6 +480,7 @@
Vect_get_isle_points(Map, isle, ipoints);
robj = robj_alloc(TYPE_ISLE, ipoints->n_points);
+ robj->fid = -1;
robj_points(robj, ipoints);
list_append(list, robj);
}
More information about the grass-commit
mailing list