diff options
Diffstat (limited to 'sw/source/filter/html/htmldrawreader.cxx')
-rw-r--r-- | sw/source/filter/html/htmldrawreader.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/filter/html/htmldrawreader.cxx b/sw/source/filter/html/htmldrawreader.cxx index b937eea4608d..457475246838 100644 --- a/sw/source/filter/html/htmldrawreader.cxx +++ b/sw/source/filter/html/htmldrawreader.cxx @@ -303,7 +303,7 @@ void SwHTMLParser::NewMarquee( HTMLTable *pCurTable ) else { const sal_Int32 nLoop = rOption.GetSNumber(); - nCount = static_cast<sal_uInt16>(nLoop>0 ? nLoop : 0); + nCount = std::max<sal_Int32>(nLoop, 0); } break; |