summaryrefslogtreecommitdiff
path: root/sc/source/core/data
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data')
-rw-r--r--sc/source/core/data/column2.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index 8759c513210c..307d42b6ec19 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -611,7 +611,7 @@ sal_uInt16 ScColumn::GetOptimalColWidth(
sc::SingleColumnSpanSet aSpanSet;
sc::SingleColumnSpanSet::SpansType aMarkedSpans;
- if (pMarkData)
+ if (pMarkData && (pMarkData->IsMarked() || pMarkData->IsMultiMarked()))
{
aSpanSet.scan(*pMarkData, nTab, nCol);
aSpanSet.getSpans(aMarkedSpans);