diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-20 19:14:20 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2011-10-20 19:19:07 +0200 |
commit | 59b1f948f1cee157bf7fc8adad57f678406c904b (patch) | |
tree | 359fef5565725f00ad6859122d442b633a32fd31 /sc/source | |
parent | 936d19e606cbf29d41bff42db559a01f5deb240c (diff) |
increment table position correctly if more than one table is inserted
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/core/data/cell2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx index c2200622a53b..28fb6348ebc8 100644 --- a/sc/source/core/data/cell2.cxx +++ b/sc/source/core/data/cell2.cxx @@ -1156,7 +1156,7 @@ void ScFormulaCell::UpdateInsertTab(SCTAB nTable, SCTAB nNewSheets) EndListeningTo( pDocument ); // IncTab _nach_ EndListeningTo und _vor_ Compiler UpdateInsertTab ! if ( bPosChanged ) - aPos.IncTab(); + aPos.IncTab(nNewSheets); ScRangeData* pRangeData; ScCompiler aComp(pDocument, aPos, *pCode); aComp.SetGrammar(pDocument->GetGrammar()); |