diff options
Diffstat (limited to 'vcl/source/treelist/treelistbox.cxx')
-rw-r--r-- | vcl/source/treelist/treelistbox.cxx | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/vcl/source/treelist/treelistbox.cxx b/vcl/source/treelist/treelistbox.cxx index 7ee2a50b33a7..05b3d9d2a891 100644 --- a/vcl/source/treelist/treelistbox.cxx +++ b/vcl/source/treelist/treelistbox.cxx @@ -3198,14 +3198,9 @@ void SvTreeListBox::Invalidate( const tools::Rectangle& rRect, InvalidateFlags n void SvTreeListBox::SetHighlightRange( sal_uInt16 nStart, sal_uInt16 nEnd) { - sal_uInt16 nTemp; nTreeFlags |= SvTreeFlags::USESEL; if( nStart > nEnd ) - { - nTemp = nStart; - nStart = nEnd; - nEnd = nTemp; - } + std::swap(nStart, nEnd); // select all tabs that lie within the area nTreeFlags |= SvTreeFlags::RECALCTABS; nFirstSelTab = nStart; |