diff options
Diffstat (limited to 'svtools/source/brwbox/brwbox2.cxx')
-rw-r--r-- | svtools/source/brwbox/brwbox2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/brwbox/brwbox2.cxx b/svtools/source/brwbox/brwbox2.cxx index 6126f341ec6a..c9ba487b91e0 100644 --- a/svtools/source/brwbox/brwbox2.cxx +++ b/svtools/source/brwbox/brwbox2.cxx @@ -258,7 +258,7 @@ void BrowseBox::ToggleSelection() tools::Rectangle aAddRect( Point( nOfsX, (nRow-nTopRow)*GetDataRowHeight() ), Size( pDataWin->GetSizePixel().Width(), GetDataRowHeight() ) ); - if ( aHighlightList.size() && nLastRowInRect == ( nRow - 1 ) ) + if ( !aHighlightList.empty() && nLastRowInRect == ( nRow - 1 ) ) aHighlightList[ 0 ].Union( aAddRect ); else aHighlightList.emplace( aHighlightList.begin(), aAddRect ); |