summaryrefslogtreecommitdiff
path: root/sc/source/ui/docshell
diff options
context:
space:
mode:
authorKohei Yoshida <kyoshida@novell.com>2011-03-15 15:52:11 -0400
committerKohei Yoshida <kyoshida@novell.com>2011-03-15 23:51:41 -0400
commitd4b5eac3753c6369dac785d260caf0547791228e (patch)
tree0fd47294f343e6368f0b0257e92f2045cd7ea067 /sc/source/ui/docshell
parent3098641cba6f749f3be091fd70af483aa709f25b (diff)
Implement undo and redo for real.
Diffstat (limited to 'sc/source/ui/docshell')
-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);