summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@collabora.com>2022-03-11 17:43:41 +0100
committerLuboš Luňák <l.lunak@collabora.com>2022-03-11 23:10:34 +0100
commite98325d8996c436394d3e1db357683aa25fc4ca7 (patch)
treeb821c50adad6eac1d1098a69630a84d4dcdbc174 /sc
parent83d599fd7c530d14f70ac60bd673b66640191bf7 (diff)
allocate column in ScTable::SetPatternAreaCondFormat() (tdf#147894)
Change-Id: Id14bb20ef5e49551cef5216b5149e3c281c04223 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/131389 Tested-by: Jenkins Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/core/data/table2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/table2.cxx b/sc/source/core/data/table2.cxx
index 59444b7bb61e..8fdee0a9f414 100644
--- a/sc/source/core/data/table2.cxx
+++ b/sc/source/core/data/table2.cxx
@@ -2894,7 +2894,7 @@ void ScTable::RemoveCondFormatData( const ScRangeList& rRangeList, sal_uInt32 nI
void ScTable::SetPatternAreaCondFormat( SCCOL nCol, SCROW nStartRow, SCROW nEndRow,
const ScPatternAttr& rAttr, const ScCondFormatIndexes& rCondFormatIndexes )
{
- aCol[nCol].SetPatternArea( nStartRow, nEndRow, rAttr);
+ CreateColumnIfNotExists(nCol).SetPatternArea( nStartRow, nEndRow, rAttr);
for (const auto& rIndex : rCondFormatIndexes)
{