summaryrefslogtreecommitdiff
path: root/sc/source/core/data/column2.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/core/data/column2.cxx')
-rw-r--r--sc/source/core/data/column2.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sc/source/core/data/column2.cxx b/sc/source/core/data/column2.cxx
index fbaf4daba584..cae5b7c546ba 100644
--- a/sc/source/core/data/column2.cxx
+++ b/sc/source/core/data/column2.cxx
@@ -560,8 +560,8 @@ long ScColumn::GetNeededSize(
// 20 * nZoom/100
// Conditional formatting is not interesting here
- sal_Int16 nFlags = static_cast<const ScMergeFlagAttr&>(pPattern->GetItem(ATTR_MERGE_FLAG)).GetValue();
- if (nFlags & SC_MF_AUTO)
+ ScMF nFlags = static_cast<const ScMergeFlagAttr&>(pPattern->GetItem(ATTR_MERGE_FLAG)).GetValue();
+ if (nFlags & ScMF::Auto)
nValue += (rZoomX.GetNumerator()*20)/rZoomX.GetDenominator();
}
return nValue;