diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-06 14:03:11 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-04-08 09:54:03 +0200 |
commit | 31ac398cfa30694b18240d31df17a58d699b5bf6 (patch) | |
tree | c9a358985ef25377e319bc387ceca687de134c43 /sc | |
parent | 541ad37f2153ba0671e46c7bdf4159cee604dd5f (diff) |
ofz#14088 ofz#14090 another batch of oss-fuzz failures
since...
commit 7282014e362a1529a36c88eb308df8ed359c2cfa
Date: Fri Feb 1 15:15:16 2019 +0100
tdf#50916 Makes numbers of columns dynamic.
Change-Id: I447a91468428b463480d835e1983ec11218613a0
Reviewed-on: https://gerrit.libreoffice.org/70388
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/unit/data/qpro/pass/ofz14090-1.wb2 | bin | 0 -> 44 bytes | |||
-rw-r--r-- | sc/qa/unit/data/slk/pass/ofz14088-1.slk | 1 | ||||
-rw-r--r-- | sc/source/core/data/table2.cxx | 2 | ||||
-rw-r--r-- | sc/source/core/data/table5.cxx | 2 |
4 files changed, 3 insertions, 2 deletions
diff --git a/sc/qa/unit/data/qpro/pass/ofz14090-1.wb2 b/sc/qa/unit/data/qpro/pass/ofz14090-1.wb2 Binary files differnew file mode 100644 index 000000000000..57fa24d40855 --- /dev/null +++ b/sc/qa/unit/data/qpro/pass/ofz14090-1.wb2 diff --git a/sc/qa/unit/data/slk/pass/ofz14088-1.slk b/sc/qa/unit/data/slk/pass/ofz14088-1.slk new file mode 100644 index 000000000000..abeaa781088e --- /dev/null +++ b/sc/qa/unit/data/slk/pass/ofz14088-1.slk @@ -0,0 +1 @@ +C;Y2;ERX26;Y1;ERX25;K
ID SCALC3
\ No newline at end of file diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx index e737b11cab3b..9839763e8a14 100644 --- a/sc/source/core/data/table2.cxx +++ b/sc/source/core/data/table2.cxx @@ -2555,7 +2555,7 @@ void ScTable::ApplyBlockFrame(const SvxBoxItem& rLineOuter, const SvxBoxInfoItem void ScTable::ApplyPattern( SCCOL nCol, SCROW nRow, const ScPatternAttr& rAttr ) { if (ValidColRow(nCol,nRow)) - aCol[nCol].ApplyPattern( nRow, rAttr ); + CreateColumnIfNotExists(nCol).ApplyPattern( nRow, rAttr ); } void ScTable::ApplyPatternArea( SCCOL nStartCol, SCROW nStartRow, SCCOL nEndCol, SCROW nEndRow, diff --git a/sc/source/core/data/table5.cxx b/sc/source/core/data/table5.cxx index 5a50a7cfcdcc..a32c27ae10bd 100644 --- a/sc/source/core/data/table5.cxx +++ b/sc/source/core/data/table5.cxx @@ -1099,7 +1099,7 @@ void ScTable::StartListening( sc::StartListeningContext& rCxt, const ScAddress& if (!ValidCol(rAddress.Col())) return; - aCol[rAddress.Col()].StartListening(rCxt, rAddress, rListener); + CreateColumnIfNotExists(rAddress.Col()).StartListening(rCxt, rAddress, rListener); } void ScTable::EndListening( sc::EndListeningContext& rCxt, const ScAddress& rAddress, SvtListener& rListener ) |