diff options
-rw-r--r-- | chart2/source/view/diagram/VDiagram.cxx | 2 | ||||
-rw-r--r-- | chart2/source/view/inc/VDiagram.hxx | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/chart2/source/view/diagram/VDiagram.cxx b/chart2/source/view/diagram/VDiagram.cxx index 30913e220514..bdbc3dd44de5 100644 --- a/chart2/source/view/diagram/VDiagram.cxx +++ b/chart2/source/view/diagram/VDiagram.cxx @@ -675,7 +675,7 @@ void VDiagram::createShapes_3d() adjustPosAndSize_3d( m_aAvailablePosIncludingAxes, m_aAvailableSizeIncludingAxes ); } -::basegfx::B2IRectangle VDiagram::getCurrentRectangle() +basegfx::B2IRectangle VDiagram::getCurrentRectangle() const { return BaseGFXHelper::makeRectangle(m_aCurrentPosWithoutAxes,m_aCurrentSizeWithoutAxes); } diff --git a/chart2/source/view/inc/VDiagram.hxx b/chart2/source/view/inc/VDiagram.hxx index ecf6cf23836b..a57cc1482cbc 100644 --- a/chart2/source/view/inc/VDiagram.hxx +++ b/chart2/source/view/inc/VDiagram.hxx @@ -54,7 +54,10 @@ public: //methods ::com::sun::star::uno::Reference< ::com::sun::star::drawing::XShapes > getCoordinateRegion() { return css::uno::Reference<css::drawing::XShapes>( m_xCoordinateRegionShape, css::uno::UNO_QUERY );} - ::basegfx::B2IRectangle getCurrentRectangle(); + /** + * Get current bounding rectangle for the diagram without axes. + */ + basegfx::B2IRectangle getCurrentRectangle() const; void reduceToMimimumSize(); |