diff options
Diffstat (limited to 'sw/source/filter/html/htmlcss1.cxx')
-rw-r--r-- | sw/source/filter/html/htmlcss1.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmlcss1.cxx b/sw/source/filter/html/htmlcss1.cxx index c61f12ed55e9..555d9b066269 100644 --- a/sw/source/filter/html/htmlcss1.cxx +++ b/sw/source/filter/html/htmlcss1.cxx @@ -1112,7 +1112,7 @@ void SwCSS1Parser::StyleParsed( const CSS1Selector *pSelector, sal_uInt32 SwCSS1Parser::GetFontHeight( sal_uInt16 nSize ) const { - return m_aFontHeights[ nSize>6 ? 6 : nSize ]; + return m_aFontHeights[ std::min<sal_uInt16>(nSize,6) ]; } const FontList *SwCSS1Parser::GetFontList() const |