summaryrefslogtreecommitdiff
path: root/cppcanvas/source/wrapper/implpolypolygon.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'cppcanvas/source/wrapper/implpolypolygon.cxx')
-rw-r--r--cppcanvas/source/wrapper/implpolypolygon.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/cppcanvas/source/wrapper/implpolypolygon.cxx b/cppcanvas/source/wrapper/implpolypolygon.cxx
index 1e8fc7c8b5f5..54f0fe30818c 100644
--- a/cppcanvas/source/wrapper/implpolypolygon.cxx
+++ b/cppcanvas/source/wrapper/implpolypolygon.cxx
@@ -88,8 +88,7 @@ namespace cppcanvas::internal
{
CanvasSharedPtr pCanvas( getCanvas() );
- OSL_ENSURE( pCanvas.get() != nullptr &&
- pCanvas->getUNOCanvas().is(),
+ OSL_ENSURE( pCanvas && pCanvas->getUNOCanvas().is(),
"ImplBitmap::draw: invalid canvas" );
if( pCanvas.get() == nullptr ||