summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column2.cxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-12-12 13:22:42 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-12-12 13:28:23 -0500
commitde27adb9d92463ec346977270fd92feb20aea7f6 (patch)
treea6a7fa1719793bdbf34cc86d5beaa2390103eb66 /sc/source/core/data/column2.cxx
parent45bd5635730f6faa6d1d9d82c00e63b487bf141d (diff)
Fix "fit to column" breakage.
I broke it during the grand cell storage refactoring. Change-Id: I75361750a859b42d83f76dd4e30ad6b134af81c5 (cherry picked from commit 3c95f901d5f30919b339695ddac94bf5a67aa9a9)
Diffstat (limited to 'sc/source/core/data/column2.cxx')
-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);