summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sc/source/filter/xml/XMLTableShapeResizer.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sc/source/filter/xml/XMLTableShapeResizer.cxx b/sc/source/filter/xml/XMLTableShapeResizer.cxx
index 61b651a94a0b..3a0f466aa590 100644
--- a/sc/source/filter/xml/XMLTableShapeResizer.cxx
+++ b/sc/source/filter/xml/XMLTableShapeResizer.cxx
@@ -84,7 +84,8 @@ void ScMyOLEFixer::CreateChartListener(ScDocument& rDoc,
if (pRefTokens->empty())
return;
- ScChartListener* pCL(new ScChartListener(rName, rDoc, std::move(pRefTokens)));
+ OUString sName = !rName.isEmpty() ? rName : pCollection->getUniqueName("OLEFixer ");
+ ScChartListener* pCL(new ScChartListener(sName, rDoc, std::move(pRefTokens)));
//for loading binary files e.g.
//if we have the flat filter we need to set the dirty flag thus the visible charts get repainted