summaryrefslogtreecommitdiff
path: root/boost/polygon/polygon_set_data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/polygon/polygon_set_data.hpp')
-rw-r--r--boost/polygon/polygon_set_data.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/boost/polygon/polygon_set_data.hpp b/boost/polygon/polygon_set_data.hpp
index 3c761d34f8..9c6420decc 100644
--- a/boost/polygon/polygon_set_data.hpp
+++ b/boost/polygon/polygon_set_data.hpp
@@ -209,6 +209,9 @@ namespace boost { namespace polygon {
return;
}
int wmultiplier = (winding == COUNTERCLOCKWISE) ? 1 : -1;
+ if (is_hole) {
+ wmultiplier = -wmultiplier;
+ }
dirty_ = true;
unsorted_ = true;
while (vertex0 != end_vertex) {