Kaydet (Commit) 59b1f948 authored tarafından Markus Mohrhard's avatar Markus Mohrhard

increment table position correctly if more than one table is inserted

üst 936d19e6
...@@ -1156,7 +1156,7 @@ void ScFormulaCell::UpdateInsertTab(SCTAB nTable, SCTAB nNewSheets) ...@@ -1156,7 +1156,7 @@ void ScFormulaCell::UpdateInsertTab(SCTAB nTable, SCTAB nNewSheets)
EndListeningTo( pDocument ); EndListeningTo( pDocument );
// IncTab _nach_ EndListeningTo und _vor_ Compiler UpdateInsertTab ! // IncTab _nach_ EndListeningTo und _vor_ Compiler UpdateInsertTab !
if ( bPosChanged ) if ( bPosChanged )
aPos.IncTab(); aPos.IncTab(nNewSheets);
ScRangeData* pRangeData; ScRangeData* pRangeData;
ScCompiler aComp(pDocument, aPos, *pCode); ScCompiler aComp(pDocument, aPos, *pCode);
aComp.SetGrammar(pDocument->GetGrammar()); aComp.SetGrammar(pDocument->GetGrammar());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment