diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-11 15:48:08 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-12 09:51:50 +0200 |
commit | b240c12ef26d9bfb4e2580b1304e5180fb83e1aa (patch) | |
tree | e7244dd8ce81a9b6849b97142136cc3fb8b5b642 | |
parent | c9c9c5ad3fa41f78042b44092c44a181c3b846b8 (diff) |
crashtesting: failed on reexport of fdo64646-4.xls
since...
commit 7282014e362a1529a36c88eb308df8ed359c2cfa
Date: Fri Feb 1 15:15:16 2019 +0100
tdf#50916 Makes numbers of columns dynamic
Change-Id: Id013d1005605f7c7b58b4065ead1e6053cedd45d
Reviewed-on: https://gerrit.libreoffice.org/70601
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | sc/source/core/data/table2.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index 2a288c46423f..e48f2393977f 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -1952,7 +1952,7 @@ sal_uInt32 ScTable::GetNumberFormat( const ScInterpreterContext& rContext, const sal_uInt32 ScTable::GetNumberFormat( SCCOL nCol, SCROW nRow ) const { if (ValidColRow(nCol,nRow)) - return aCol[nCol].GetNumberFormat( pDocument->GetNonThreadedContext(), nRow ); + return CreateColumnIfNotExists(nCol).GetNumberFormat(pDocument->GetNonThreadedContext(), nRow); else return 0; } @@ -1962,7 +1962,7 @@ sal_uInt32 ScTable::GetNumberFormat( SCCOL nCol, SCROW nStartRow, SCROW nEndRow if (!ValidCol(nCol) || !ValidRow(nStartRow) || !ValidRow(nEndRow)) return 0; - return aCol[nCol].GetNumberFormat(nStartRow, nEndRow); + return CreateColumnIfNotExists(nCol).GetNumberFormat(nStartRow, nEndRow); } void ScTable::SetNumberFormat( SCCOL nCol, SCROW nRow, sal_uInt32 nNumberFormat ) |