diff options
Diffstat (limited to 'cppcanvas/source/tools/canvasgraphichelper.cxx')
-rw-r--r-- | cppcanvas/source/tools/canvasgraphichelper.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/cppcanvas/source/tools/canvasgraphichelper.cxx b/cppcanvas/source/tools/canvasgraphichelper.cxx index 4888960c0d96..758172e19f78 100644 --- a/cppcanvas/source/tools/canvasgraphichelper.cxx +++ b/cppcanvas/source/tools/canvasgraphichelper.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,7 +58,7 @@ namespace cppcanvas mxGraphicDevice() { OSL_ENSURE( mpCanvas.get() != NULL && - mpCanvas->getUNOCanvas().is(), + mpCanvas->getUNOCanvas().is(), "CanvasGraphicHelper::CanvasGraphicHelper: no valid canvas" ); if( mpCanvas.get() != NULL && @@ -74,11 +74,11 @@ namespace cppcanvas { ::canvas::tools::setRenderStateTransform( maRenderState, rMatrix ); } - + ::basegfx::B2DHomMatrix CanvasGraphicHelper::getTransformation() const { ::basegfx::B2DHomMatrix aMatrix; - return ::canvas::tools::getRenderStateTransform( aMatrix, + return ::canvas::tools::getRenderStateTransform( aMatrix, maRenderState ); } @@ -118,13 +118,13 @@ namespace cppcanvas void CanvasGraphicHelper::setRGBAColor( Color::IntSRGBA aColor ) { - maRenderState.DeviceColor = tools::intSRGBAToDoubleSequence( mxGraphicDevice, + maRenderState.DeviceColor = tools::intSRGBAToDoubleSequence( mxGraphicDevice, aColor ); } Color::IntSRGBA CanvasGraphicHelper::getRGBAColor() const { - return tools::doubleSequenceToIntSRGBA( mxGraphicDevice, + return tools::doubleSequenceToIntSRGBA( mxGraphicDevice, maRenderState.DeviceColor ); } @@ -143,11 +143,11 @@ namespace cppcanvas return mpCanvas; } - uno::Reference< rendering::XGraphicDevice > CanvasGraphicHelper::getGraphicDevice() const + uno::Reference< rendering::XGraphicDevice > CanvasGraphicHelper::getGraphicDevice() const { return mxGraphicDevice; } - + } } |