Kaydet (Commit) 17979abf authored tarafından Eike Rathke's avatar Eike Rathke

resolved rhbz#1101224 do not attempt to obtain names for NULL tabs

This happened when the HTML export via clipboard tried to resolve
conditional formats, where we have a temporary instance of a document
containing only the sheet to be exported.

Change-Id: Ic7498a1cab3eabede74773868287a2cc3edef052
üst ea491d05
...@@ -268,9 +268,14 @@ std::vector<OUString> ScDocument::GetAllTableNames() const ...@@ -268,9 +268,14 @@ std::vector<OUString> ScDocument::GetAllTableNames() const
TableContainer::const_iterator it = maTabs.begin(), itEnd = maTabs.end(); TableContainer::const_iterator it = maTabs.begin(), itEnd = maTabs.end();
for (; it != itEnd; ++it) for (; it != itEnd; ++it)
{ {
// Positions need to be preserved for ScCompiler and address convention
// context, so still push an empty string for NULL tabs.
OUString aName; OUString aName;
const ScTable& rTab = **it; if (*it)
rTab.GetName(aName); {
const ScTable& rTab = **it;
rTab.GetName(aName);
}
aNames.push_back(aName); aNames.push_back(aName);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment