diff options
author | Mike Kaganski <mike.kaganski@collabora.com> | 2020-07-20 19:00:13 +0300 |
---|---|---|
committer | Mike Kaganski <mike.kaganski@collabora.com> | 2020-07-20 21:22:48 +0200 |
commit | 3e6519714abebf00637c953dbba055d620cfe6f7 (patch) | |
tree | 58a9292c1ff167edd9e1620d205d5383bfff3e18 | |
parent | 4d41b22135904e81f847c1cbf00abc82a414095f (diff) |
tdf#31231: don't set charts modified state when !IsEnableSetModified
Modified state of the chart is part of modified state of owner document:
see SfxObjectShell::IsModified.
So when the document is loading, any updates to its charts don't make the
document modified.
Change-Id: Ie7643ff55bd44f1afe3f796f72c2508ea57f65d0
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99102
Tested-by: Mike Kaganski <mike.kaganski@collabora.com>
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
-rw-r--r-- | sc/source/core/data/documen5.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/documen5.cxx b/sc/source/core/data/documen5.cxx index a06505a31bc0..631f60c863fa 100644 --- a/sc/source/core/data/documen5.cxx +++ b/sc/source/core/data/documen5.cxx @@ -336,7 +336,7 @@ void ScDocument::UpdateChart( const OUString& rChartName ) if (!mpDrawLayer || bInDtorClear) return; uno::Reference< chart2::XChartDocument > xChartDoc( GetChartByName( rChartName ) ); - if( xChartDoc.is() ) + if (xChartDoc && (!mpShell || mpShell->IsEnableSetModified())) { try { |