[Libreoffice-commits] core.git: chart2/source

Markus Mohrhard markus.mohrhard at googlemail.com
Sun Sep 20 12:59:57 PDT 2015


 chart2/source/controller/sidebar/ChartElementsPanel.cxx |   16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

New commits:
commit f78216d15dbf0ac236894177a2876fe7dad608da
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Sun Sep 20 21:57:28 2015 +0200

    fix regression with chart sidebar list position
    
    regression from 66f1e65fde85168ae582ea75f72ebb290caa0a08
    
    Change-Id: I92a5d6926ee912d4802f074d1e4aae63cf672ab1

diff --git a/chart2/source/controller/sidebar/ChartElementsPanel.cxx b/chart2/source/controller/sidebar/ChartElementsPanel.cxx
index 8d9317a..acfa73d 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;


More information about the Libreoffice-commits mailing list