summaryrefslogtreecommitdiff
path: root/basegfx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-10-03 09:50:37 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-10-03 16:30:29 +0100
commit4fb93e98990c1fefa6bcaafdcf80c3f49d346af2 (patch)
treef8bae4068b663742a7d7a124b8566325fcde5451 /basegfx
parentbeadebc0f7eb5582fcb8dcb082d19afdf2751876 (diff)
coverity#1242792 Unused value
Change-Id: I66000e2e3ae8d28f5f04bb6404c73feb2a1e8905
Diffstat (limited to 'basegfx')
-rw-r--r--basegfx/source/polygon/b2dpolygontools.cxx5
1 files 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 <osl/diagnose.h>
#include <rtl/math.hxx>
#include <rtl/instance.hxx>
+#include <sal/log.hxx>
#include <basegfx/polygon/b2dpolygon.hxx>
#include <basegfx/polygon/b2dpolypolygon.hxx>
#include <basegfx/range/b2drange.hxx>
@@ -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