diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-03-15 15:52:11 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-03-15 23:51:41 -0400 |
commit | d4b5eac3753c6369dac785d260caf0547791228e (patch) | |
tree | 0fd47294f343e6368f0b0257e92f2045cd7ea067 /sc/source/ui/docshell/docfunc.cxx | |
parent | 3098641cba6f749f3be091fd70af483aa709f25b (diff) |
Implement undo and redo for real.
Diffstat (limited to 'sc/source/ui/docshell/docfunc.cxx')
-rw-r--r-- | sc/source/ui/docshell/docfunc.cxx | 4 |
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); |