diff options
Diffstat (limited to 'cppcanvas')
-rw-r--r-- | cppcanvas/source/wrapper/implbitmap.cxx | 6 | ||||
-rw-r--r-- | cppcanvas/source/wrapper/implbitmap.hxx | 2 |
2 files changed, 3 insertions, 5 deletions
diff --git a/cppcanvas/source/wrapper/implbitmap.cxx b/cppcanvas/source/wrapper/implbitmap.cxx index 281a76bdc998..adab03b81c1a 100644 --- a/cppcanvas/source/wrapper/implbitmap.cxx +++ b/cppcanvas/source/wrapper/implbitmap.cxx @@ -75,7 +75,7 @@ namespace cppcanvas return true; } - bool ImplBitmap::drawAlphaModulated( double nAlphaModulation ) const + void ImplBitmap::drawAlphaModulated( double nAlphaModulation ) const { CanvasSharedPtr pCanvas( getCanvas() ); @@ -86,7 +86,7 @@ namespace cppcanvas if( pCanvas.get() == nullptr || !pCanvas->getUNOCanvas().is() ) { - return false; + return; } rendering::RenderState aLocalState( getRenderState() ); @@ -99,8 +99,6 @@ namespace cppcanvas pCanvas->getUNOCanvas()->drawBitmapModulated( mxBitmap, pCanvas->getViewState(), aLocalState ); - - return true; } BitmapCanvasSharedPtr ImplBitmap::getBitmapCanvas() const diff --git a/cppcanvas/source/wrapper/implbitmap.hxx b/cppcanvas/source/wrapper/implbitmap.hxx index aabfd331a4dc..349e13a8188d 100644 --- a/cppcanvas/source/wrapper/implbitmap.hxx +++ b/cppcanvas/source/wrapper/implbitmap.hxx @@ -47,7 +47,7 @@ namespace cppcanvas // CanvasGraphic implementation (that was not already implemented by CanvasGraphicHelper) virtual bool draw() const override; - virtual bool drawAlphaModulated( double nAlphaModulation ) const override; + virtual void drawAlphaModulated( double nAlphaModulation ) const override; virtual BitmapCanvasSharedPtr getBitmapCanvas() const override; |