diff options
Diffstat (limited to 'vcl/source/control/imp_listbox.cxx')
-rw-r--r-- | vcl/source/control/imp_listbox.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/control/imp_listbox.cxx b/vcl/source/control/imp_listbox.cxx index f9ba50513178..2125e0780afa 100644 --- a/vcl/source/control/imp_listbox.cxx +++ b/vcl/source/control/imp_listbox.cxx @@ -296,7 +296,7 @@ tools::Long ImplEntryList::GetAddedHeight( sal_Int32 i_nEndIndex, sal_Int32 i_nB while( nIndex != LISTBOX_ENTRY_NOTFOUND && nIndex < nStop ) { tools::Long nPosHeight = GetEntryPtr( nIndex )->getHeightWithMargin(); - if (nHeight > ::std::numeric_limits<long>::max() - nPosHeight) + if (nHeight > ::std::numeric_limits<tools::Long>::max() - nPosHeight) { SAL_WARN( "vcl", "ImplEntryList::GetAddedHeight: truncated"); break; |