diff options
Diffstat (limited to 'sc/source/core/data/cell2.cxx')
-rw-r--r-- | sc/source/core/data/cell2.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sc/source/core/data/cell2.cxx b/sc/source/core/data/cell2.cxx index 5bac8e30b..10230997d 100644 --- a/sc/source/core/data/cell2.cxx +++ b/sc/source/core/data/cell2.cxx @@ -609,7 +609,8 @@ sal_uInt16 ScFormulaCell::GetMatrixEdge( ScAddress& rOrgPos ) { pFCell->GetMatColsRows( nC, nR ); if ( nC == 0 || nR == 0 ) - { // aus altem Dokument geladen, neu erzeugen + { + // No ScMatrixFormulaCellToken available yet, calculate new. nC = 1; nR = 1; ScAddress aTmpOrg; @@ -622,7 +623,8 @@ sal_uInt16 ScFormulaCell::GetMatrixEdge( ScAddress& rOrgPos ) pCell = pDocument->GetCell( aAdr ); if ( pCell && pCell->GetCellType() == CELLTYPE_FORMULA && ((ScFormulaCell*)pCell)->cMatrixFlag == MM_REFERENCE - && GetMatrixOrigin( aTmpOrg ) && aTmpOrg == aOrg ) + && ((ScFormulaCell*)pCell)->GetMatrixOrigin( aTmpOrg ) + && aTmpOrg == aOrg ) { nC++; aAdr.IncCol(); @@ -638,7 +640,8 @@ sal_uInt16 ScFormulaCell::GetMatrixEdge( ScAddress& rOrgPos ) pCell = pDocument->GetCell( aAdr ); if ( pCell && pCell->GetCellType() == CELLTYPE_FORMULA && ((ScFormulaCell*)pCell)->cMatrixFlag == MM_REFERENCE - && GetMatrixOrigin( aTmpOrg ) && aTmpOrg == aOrg ) + && ((ScFormulaCell*)pCell)->GetMatrixOrigin( aTmpOrg ) + && aTmpOrg == aOrg ) { nR++; aAdr.IncRow(); |