summaryrefslogtreecommitdiff
path: root/chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx')
-rw-r--r--chart2/source/controller/chartapiwrapper/Chart2ModelContact.cxx8
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;
}