summaryrefslogtreecommitdiffstats
path: root/sc
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-10-20 19:14:20 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2011-10-20 19:19:07 +0200
commit59b1f948f1cee157bf7fc8adad57f678406c904b (patch)
tree359fef5565725f00ad6859122d442b633a32fd31 /sc
parentfix horizontal scrollbars with KDE oxygen style (bnc#722918) (diff)
downloadcore-59b1f948f1cee157bf7fc8adad57f678406c904b.tar.gz
core-59b1f948f1cee157bf7fc8adad57f678406c904b.zip
increment table position correctly if more than one table is inserted
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/cell2.cxx2
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());