summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/column.cxx')
-rw-r--r--sc/source/core/data/column.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sc/source/core/data/column.cxx b/sc/source/core/data/column.cxx
index af35e8ccfe8a..bb8d3783c122 100644
--- a/sc/source/core/data/column.cxx
+++ b/sc/source/core/data/column.cxx
@@ -108,10 +108,10 @@ void ScColumn::Init(SCCOL nNewCol, SCTAB nNewTab, ScDocument* pDoc, bool bEmptyA
nCol = nNewCol;
nTab = nNewTab;
pDocument = pDoc;
- if ( !bEmptyAttrArray )
- pAttrArray = new ScAttrArray( nCol, nTab, pDocument, &pDocument->maTabs[nTab]->aNextColAttrArray, bEmptyAttrArray );
+ if ( bEmptyAttrArray )
+ pAttrArray = new ScAttrArray( nCol, nTab, pDocument, nullptr );
else
- pAttrArray = new ScAttrArray( nCol, nTab, pDocument, nullptr, true );
+ pAttrArray = new ScAttrArray( nCol, nTab, pDocument, &pDocument->maTabs[nTab]->aDefaultColAttrArray );
}
SCsROW ScColumn::GetNextUnprotected( SCROW nRow, bool bUp ) const