summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell/docfunc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r--sc/source/ui/docshell/docfunc.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/sc/source/ui/docshell/docfunc.cxx b/sc/source/ui/docshell/docfunc.cxx
index 9cf20421cbe3..00b62d14c9fa 100644
--- a/sc/source/ui/docshell/docfunc.cxx
+++ b/sc/source/ui/docshell/docfunc.cxx
@@ -4506,9 +4506,7 @@ void ScDocFunc::ModifyAllRangeNames( const ScRangeName* pGlobal, const ScRangeNa
pDoc->SetRangeName(new ScRangeName(*pGlobal));
// sheet-local names
- ScRangeName::TabNameCopyMap::const_iterator itr = rTabs.begin(), itrEnd = rTabs.end();
- for (; itr != itrEnd; ++itr)
- pDoc->SetRangeName(itr->first, new ScRangeName(*itr->second));
+ pDoc->SetAllTabRangeNames(rTabs);
pDoc->CompileNameFormula(false);