summaryrefslogtreecommitdiff
path: root/boost/polygon/polygon_45_set_data.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/polygon/polygon_45_set_data.hpp')
-rw-r--r--boost/polygon/polygon_45_set_data.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/polygon/polygon_45_set_data.hpp b/boost/polygon/polygon_45_set_data.hpp
index 4438d74ef8..97585f6dad 100644
--- a/boost/polygon/polygon_45_set_data.hpp
+++ b/boost/polygon/polygon_45_set_data.hpp
@@ -666,7 +666,7 @@ namespace boost { namespace polygon{
bool plus45 = vertex.count[2] != 0;
bool minus45 = vertex.count[0] != 0;
if(plus45 || minus45) {
- if(abs(vertex.pt.x()) % 2 != abs(vertex.pt.y()) % 2) {
+ if(local_abs(vertex.pt.x()) % 2 != local_abs(vertex.pt.y()) % 2) {
if(vertex.count[1] != 0 ||
(plus45 && minus45)) {
//move right
@@ -1014,7 +1014,7 @@ namespace boost { namespace polygon{
if(resizing > 0) return; //accute interior corner
else multiplier *= -1; //make it appear to be an accute exterior angle
}
- Unit bloating = abs(resizing);
+ Unit bloating = local_abs(resizing);
if(rounding == SQRT1OVER2) {
if(edge1 % 2 && edge2 % 2) return;
if(corner == ORTHOGONAL && edge1 % 2 == 0 && edge2 % 2 == 0) {