summaryrefslogtreecommitdiff
path: root/sc/source
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:23:17 -0500
commit3c95f901d5f30919b339695ddac94bf5a67aa9a9 (patch)
tree0e5b045c4093ec81f36b239d455dbdfd415cffcc /sc/source
parent38b7c4f1b78044a4b127499743d24a2369fb445a (diff)
Fix "fit to column" breakage.
I broke it during the grand cell storage refactoring. Change-Id: I75361750a859b42d83f76dd4e30ad6b134af81c5
Diffstat (limited to 'sc/source')
-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);