summaryrefslogtreecommitdiff
path: root/chart2/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-20 21:57:28 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2015-09-20 21:57:28 +0200
commitf78216d15dbf0ac236894177a2876fe7dad608da (patch)
tree2b5cd8c452c2b541aa6cd82fefa683e0b8f2e80d /chart2/source
parent85eb1e5148ec657c8e582a0faf3ffa75009a4788 (diff)
fix regression with chart sidebar list position
regression from 66f1e65fde85168ae582ea75f72ebb290caa0a08 Change-Id: I92a5d6926ee912d4802f074d1e4aae63cf672ab1
Diffstat (limited to 'chart2/source')
-rw-r--r--chart2/source/controller/sidebar/ChartElementsPanel.cxx16
1 files changed, 8 insertions, 8 deletions
diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index 8d9317a8199a..acfa73df7158 100644
--- a/chart2/source/controller/sidebar/ChartElementsPanel.cxx
+++ b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
@@ -210,13 +210,13 @@ sal_Int32 getLegendPos(css::uno::Reference<css::frame::XModel> xModel)
switch(eLegendPos)
{
case chart2::LegendPosition_LINE_START:
- return 1;
+ return 3;
case chart2::LegendPosition_LINE_END:
- return 2;
+ return 0;
case chart2::LegendPosition_PAGE_START:
- return 3;
+ return 1;
case chart2::LegendPosition_PAGE_END:
- return 0;
+ return 2;
default:
return 4;
}
@@ -236,17 +236,17 @@ void setLegendPos(css::uno::Reference<css::frame::XModel> xModel, sal_Int32 nPos
css::chart::ChartLegendExpansion eExpansion = css::chart::ChartLegendExpansion_HIGH;
switch(nPos)
{
- case 3:
+ case 1:
eLegendPos = chart2::LegendPosition_PAGE_START;
eExpansion = css::chart::ChartLegendExpansion_WIDE;
break;
- case 1:
+ case 3:
eLegendPos = chart2::LegendPosition_LINE_START;
break;
- case 2:
+ case 0:
eLegendPos = chart2::LegendPosition_LINE_END;
break;
- case 0:
+ case 2:
eLegendPos = chart2::LegendPosition_PAGE_END;
eExpansion = css::chart::ChartLegendExpansion_WIDE;
break;