summaryrefslogtreecommitdiff
path: root/chart2/source/model/template
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-06-29 10:30:52 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-06-29 10:34:27 +0200
commit63a76a0d3d73bebe29a2d17d777d8e8d9e52e224 (patch)
tree96c5316421581a428a6e9c575e9095cc3b80da1c /chart2/source/model/template
parent1091744caf4f5509a67b5e5fc8ba2251ef5a6a18 (diff)
ChartTypeHelper::getSupportedLabelPlacements nDimensionCount was ignored
...ever since the code's integration with 124d934dffd8737db2d4375029c5a8b3880acaec "INTEGRATION: CWS chart17: #i63857#, #i4039# more flexible placement of data point labels, best fit for pie labels" Change-Id: I942d7ff128d0b9e42ede371f81860f3c67943879
Diffstat (limited to 'chart2/source/model/template')
-rw-r--r--chart2/source/model/template/ChartTypeTemplate.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/chart2/source/model/template/ChartTypeTemplate.cxx b/chart2/source/model/template/ChartTypeTemplate.cxx
index 8e9e02dfa2c1..7afedc734ba3 100644
--- a/chart2/source/model/template/ChartTypeTemplate.cxx
+++ b/chart2/source/model/template/ChartTypeTemplate.cxx
@@ -400,7 +400,7 @@ void SAL_CALL ChartTypeTemplate::applyStyle(
//ensure valid label placement
{
uno::Sequence < sal_Int32 > aAvailablePlacements( ChartTypeHelper::getSupportedLabelPlacements(
- getChartTypeForIndex( nChartTypeIndex ), getDimension(), isSwapXAndY(), xSeries ) );
+ getChartTypeForIndex( nChartTypeIndex ), isSwapXAndY(), xSeries ) );
lcl_ensureCorrectLabelPlacement( xSeriesProp, aAvailablePlacements );
uno::Sequence< sal_Int32 > aAttributedDataPointIndexList;
@@ -489,7 +489,7 @@ void SAL_CALL ChartTypeTemplate::resetStyles( const Reference< chart2::XDiagram
continue;
uno::Sequence < sal_Int32 > aAvailablePlacements( ChartTypeHelper::getSupportedLabelPlacements(
- xChartType, getDimension(), isSwapXAndY(), xSeries ) );
+ xChartType, isSwapXAndY(), xSeries ) );
if(!aAvailablePlacements.getLength())
continue;