From 412ca1ff72d2031d327df658a94e63bdcb8583b0 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 10 Dec 2019 10:46:19 +0200 Subject: convert SwFrameSize to scoped enum Change-Id: I7e1e641ff180035c7dcefdcfdd185eadbae32142 Reviewed-on: https://gerrit.libreoffice.org/84850 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/filter/html/htmlcss1.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/filter/html/htmlcss1.cxx') diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx index e7a1827543a6..c0ace59b4801 100644 --- a/sw/source/filter/html/htmlcss1.cxx +++ b/sw/source/filter/html/htmlcss1.cxx @@ -506,7 +506,7 @@ void SwCSS1Parser::SetPageDescAttrs( const SwPageDesc *pPageDesc, { if( rPropInfo.m_eSizeType == SVX_CSS1_STYPE_TWIP ) { - rMaster.SetFormatAttr( SwFormatFrameSize( ATT_FIX_SIZE, rPropInfo.m_nWidth, + rMaster.SetFormatAttr( SwFormatFrameSize( SwFrameSize::Fixed, rPropInfo.m_nWidth, rPropInfo.m_nHeight ) ); bChanged = true; } @@ -2058,7 +2058,7 @@ void SwHTMLParser::SetVarSize( SvxCSS1PropertyInfo const &rPropInfo, ; } - SwFormatFrameSize aFrameSize( ATT_MIN_SIZE, nWidth, nHeight ); + SwFormatFrameSize aFrameSize( SwFrameSize::Minimum, nWidth, nHeight ); aFrameSize.SetWidthPercent( nPrcWidth ); aFrameSize.SetHeightPercent( nPrcHeight ); rFrameItemSet.Put( aFrameSize ); -- cgit