diff --git a/basegfx/source/polygon/b2dpolygontools.cxx b/basegfx/source/polygon/b2dpolygontools.cxx index 3c5f80d470f4..eb6f210cf910 100644 --- a/basegfx/source/polygon/b2dpolygontools.cxx +++ b/basegfx/source/polygon/b2dpolygontools.cxx @@ -22,6 +22,7 @@ #include #include #include +#include #include #include #include @@ -3446,8 +3447,8 @@ namespace basegfx // two or no control points are consumed, another one would be an error. // It's also an error if only one control point was read - OSL_ENSURE(com::sun::star::drawing::PolygonFlags_CONTROL != ePolygonFlag && bControlA == bControlB, - "UnoPolygonBezierCoordsToB2DPolygon: Illegal source polygon (!)"); + SAL_WARN_IF(com::sun::star::drawing::PolygonFlags_CONTROL == ePolygonFlag || bControlA != bControlB, + "basegfx", "UnoPolygonBezierCoordsToB2DPolygon: Illegal source polygon (!)"); // the previous writes used the B2DPolyPoygon -> tools::PolyPolygon converter // which did not create minimal PolyPolygons, but created all control points