diff options
author | tagezi <lera.goncharuk@gmail.com> | 2017-11-21 15:54:38 +0200 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2017-11-22 05:53:03 +0100 |
commit | a0ebba3d8855fee0bcec04a10137ae3a4f9f0e77 (patch) | |
tree | 44a816ab44289e73025708772867377dcb5e6a72 /chart2/source/controller | |
parent | 921c8f50132de4042860956e102389c239da638a (diff) |
tdf#39593 deduplicate code in ExplicitValueProvider
Change-Id: I0525761b0d1359b3e0f249cef02e1818af95156b
Reviewed-on: https://gerrit.libreoffice.org/45037
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'chart2/source/controller')
-rw-r--r-- | chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx index ffc60ec31ced..9c904996ebee 100644 --- a/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx +++ b/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx @@ -175,8 +175,8 @@ awt::Size Chart2ModelContact::GetPageSize() const awt::Rectangle Chart2ModelContact::SubstractAxisTitleSizes( const awt::Rectangle& rPositionRect ) { - awt::Rectangle aRect = ExplicitValueProvider::substractAxisTitleSizes( - *mpModel, getChartView(), rPositionRect ); + awt::Rectangle aRect = ExplicitValueProvider::AddSubtractAxisTitleSizes( + *mpModel, getChartView(), rPositionRect, true ); return aRect; } @@ -185,8 +185,8 @@ awt::Rectangle Chart2ModelContact::GetDiagramRectangleIncludingTitle() const awt::Rectangle aRect( GetDiagramRectangleIncludingAxes() ); //add axis title sizes to the diagram size - aRect = ExplicitValueProvider::addAxisTitleSizes( - *mpModel, getChartView(), aRect ); + aRect = ExplicitValueProvider::AddSubtractAxisTitleSizes( + *mpModel, getChartView(), aRect, false ); return aRect; } |