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

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Wed Sep 26 10:42:28 UTC 2018


 chart2/source/tools/AxisHelper.cxx |    5 -----
 1 file changed, 5 deletions(-)

New commits:
commit 3708195d0c94cf1c50febc49fcfa6a9ff6855336
Author:     Markus Mohrhard <markus.mohrhard at googlemail.com>
AuthorDate: Wed Sep 26 10:48:07 2018 +0200
Commit:     Markus Mohrhard <markus.mohrhard at googlemail.com>
CommitDate: Wed Sep 26 12:42:05 2018 +0200

    tdf#119882, don't change the chart model from the chart view
    
    Change-Id: I1c909f6e1984bd4b09c3b67c19659dc276ac3229
    Reviewed-on: https://gerrit.libreoffice.org/60984
    Tested-by: Jenkins
    Reviewed-by: Markus Mohrhard <markus.mohrhard at googlemail.com>

diff --git a/chart2/source/tools/AxisHelper.cxx b/chart2/source/tools/AxisHelper.cxx
index 9fc305abb5da..e0a6f4623d7e 100644
--- a/chart2/source/tools/AxisHelper.cxx
+++ b/chart2/source/tools/AxisHelper.cxx
@@ -154,8 +154,6 @@ sal_Int32 AxisHelper::getExplicitNumberFormatKeyForAxis(
     xProp->getPropertyValue(CHART_UNONAME_LINK_TO_SRC_NUMFMT) >>= bLinkToSource;
     xProp->getPropertyValue(CHART_UNONAME_NUMFMT) >>= nNumberFormatKey;
 
-    sal_Int32 nOldNumberFormat = nNumberFormatKey;
-
     if (bLinkToSource)
     {
         bool bFormatSet = false;
@@ -329,9 +327,6 @@ sal_Int32 AxisHelper::getExplicitNumberFormatKeyForAxis(
                 }
             }
         }
-
-        if (nOldNumberFormat != nNumberFormatKey)
-            xProp->setPropertyValue(CHART_UNONAME_NUMFMT, uno::Any(nNumberFormatKey));
     }
 
     return nNumberFormatKey;


More information about the Libreoffice-commits mailing list