From 3708195d0c94cf1c50febc49fcfa6a9ff6855336 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Wed, 26 Sep 2018 10:48:07 +0200 Subject: 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 --- chart2/source/tools/AxisHelper.cxx | 5 ----- 1 file changed, 5 deletions(-) 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; -- cgit v1.2.3