[GRASS-SVN] r32161 - grass/trunk/gui/wxpython/vdigit
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Jul 18 10:57:56 EDT 2008
Author: martinl
Date: 2008-07-18 10:57:55 -0400 (Fri, 18 Jul 2008)
New Revision: 32161
Modified:
grass/trunk/gui/wxpython/vdigit/driver.cpp
Log:
wxGUI/vdigit: don't simplify area shape (on fill)
Modified: grass/trunk/gui/wxpython/vdigit/driver.cpp
===================================================================
--- grass/trunk/gui/wxpython/vdigit/driver.cpp 2008-07-18 14:21:24 UTC (rev 32160)
+++ grass/trunk/gui/wxpython/vdigit/driver.cpp 2008-07-18 14:57:55 UTC (rev 32161)
@@ -127,7 +127,6 @@
bool draw;
struct ilist *listAreas, *listCentroids;
struct line_pnts *points, *ipoints, **isles;
- BOUND_BOX areaBox;
wxBrush *fillArea, *fillIsle;
@@ -181,18 +180,6 @@
Vect_reset_list(listCentroids);
}
- Vect_get_area_box(mapInfo, area, &areaBox);
- if (areaBox.E > region.box.E && areaBox.W < region.box.W &&
- areaBox.S < region.box.S && areaBox.N > region.box.N) {
-
- Vect_reset_line(points);
- Vect_append_point(points, region.box.W, region.box.N, 0.0);
- Vect_append_point(points, region.box.E, region.box.N, 0.0);
- Vect_append_point(points, region.box.E, region.box.S, 0.0);
- Vect_append_point(points, region.box.W, region.box.S, 0.0);
- Vect_append_point(points, region.box.W, region.box.N, 0.0);
- }
-
draw = true;
for (int c = 0; c < listCentroids->n_values; c++) {
if(Vect_get_centroid_area(mapInfo, listCentroids->value[c]) < 0) {
More information about the grass-commit
mailing list