diff options
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 10a4202f71c4..8daede5fa7b9 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -18,6 +18,7 @@ */ #include <sal/log.hxx> +#include <o3tl/safeint.hxx> #include <osl/diagnose.h> #include <tools/debug.hxx> #include <svtools/brwbox.hxx> @@ -1359,7 +1360,7 @@ void BrowseBox::MouseMove( const MouseEvent& rEvt ) sal_uInt16 nX = 0; for ( size_t nCol = 0; nCol < mvCols.size() && - ( nX + mvCols[ nCol ]->Width() ) < sal_uInt16(GetOutputSizePixel().Width()); + ( nX + mvCols[ nCol ]->Width() ) < o3tl::make_unsigned(GetOutputSizePixel().Width()); ++nCol ) // is this column visible? if ( mvCols[ nCol ]->IsFrozen() || nCol >= nFirstCol ) |