summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/core/data/documen5.cxx2
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
{