From faceb2421cbcfd0e09f5f23a3e31d093111eec1d Mon Sep 17 00:00:00 2001 From: "Albachten, Rudy" Date: Wed, 21 May 2025 14:59:59 -0700 Subject: [PATCH] Fix polygon_90_set_data::interact This method was producing incorrect results if the left hand object was not already normalized (i.e. dirty) --- include/boost/polygon/polygon_90_set_data.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/boost/polygon/polygon_90_set_data.hpp b/include/boost/polygon/polygon_90_set_data.hpp index 2c640bf1..ad6e3087 100644 --- a/include/boost/polygon/polygon_90_set_data.hpp +++ b/include/boost/polygon/polygon_90_set_data.hpp @@ -788,6 +788,7 @@ namespace boost { namespace polygon{ inline polygon_90_set_data& interact(const polygon_90_set_data& that) { typedef coordinate_type Unit; + if(dirty_) clean(); if(that.dirty_) that.clean(); typename touch_90_operation::TouchSetData tsd; touch_90_operation::populateTouchSetData(tsd, that.data_, 0);