Kaydet (Commit) b7f02223 authored tarafından Mike Kaganski's avatar Mike Kaganski

tdf#120703 PVS: V560 A part of conditional expression is always true

This changes the condition to only select row if it's not selected yet;
previously, because of the always-true condition or'ed, SelectRow was
always executed.

Change-Id: Id12b640518f3d72810e997735216db336d79f7f6
Reviewed-on: https://gerrit.libreoffice.org/63267
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
üst 2301cb30
......@@ -453,7 +453,7 @@ void BrowseBox::ExpandRowSelection( const BrowserMouseEvent& rEvt )
}
}
else
if ( !bMultiSelection || !IsRowSelected( rEvt.GetRow() ) )
if (!IsRowSelected(rEvt.GetRow()))
SelectRow( rEvt.GetRow() );
GoToRow( rEvt.GetRow(), false );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment