diff options
-rw-r--r-- | svx/source/tbxctrls/colrctrl.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svx/source/tbxctrls/colrctrl.cxx b/svx/source/tbxctrls/colrctrl.cxx index 5209fa9bfca2..56ac8a6f2bfd 100644 --- a/svx/source/tbxctrls/colrctrl.cxx +++ b/svx/source/tbxctrls/colrctrl.cxx @@ -365,7 +365,7 @@ void SvxColorDockingWindow::SetSize() // Scrollbar setzen/entfernen WinBits nBits = aColorSet.GetStyle(); - if ( nLines * nCols >= nCount ) + if ( static_cast<long>(nLines) * nCols >= nCount ) nBits &= ~WB_VSCROLL; else nBits |= WB_VSCROLL; @@ -528,7 +528,7 @@ void SvxColorDockingWindow::Resizing( Size& rNewSize ) // Scrollbar setzen/entfernen WinBits nBits = aColorSet.GetStyle(); - if ( nLines * nCols >= nCount ) + if ( static_cast<long>(nLines) * nCols >= nCount ) nBits &= ~WB_VSCROLL; else nBits |= WB_VSCROLL; |