Change all these places where I said "extent" but really meant "area"

This commit is contained in:
Erica Fischer
2022-10-19 11:53:47 -07:00
parent b763625862
commit 8e8154339f
5 changed files with 79 additions and 79 deletions
+3 -3
View File
@@ -687,15 +687,15 @@ drawvec reduce_tiny_poly(drawvec &geom, int z, int detail, bool *reduced, double
// keep its attributes instead of this one that just happened to be
// the one that hit the threshold of survival.
if (tiny_feature->extent > this_feature->extent) {
if (tiny_feature->area > this_feature->area) {
*this_feature = *tiny_feature;
tiny_feature->extent = 0;
tiny_feature->area = 0;
}
} else {
// this is a feature that we are throwing away, so hang on to it
// attributes if it is bigger than the biggest one we threw away so far
if (this_feature->extent > tiny_feature->extent) {
if (this_feature->area > tiny_feature->area) {
*tiny_feature = *this_feature;
}
}