From 4fb93e98990c1fefa6bcaafdcf80c3f49d346af2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= Date: Fri, 3 Oct 2014 09:50:37 +0100 Subject: [PATCH] coverity#1242792 Unused value Change-Id: I66000e2e3ae8d28f5f04bb6404c73feb2a1e8905 --- basegfx/source/polygon/b2dpolygontools.cxx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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