Kaydet (Commit) d81d9022 authored tarafından Ariel Constenla-Haile's avatar Ariel Constenla-Haile

i119149 - Fix triggering of selection changed event

Original author: Tsutomu Uchino <hanya.runo at gmail.com>
üst 0465df07
......@@ -196,6 +196,7 @@ namespace svt { namespace table
Point const aPoint = rMEvt.GetPosPixel();
RowPos const hitRow = m_rTableControl.getRowAtPoint( aPoint );
bool const wasRowSelected = m_rTableControl.isRowSelected( hitRow );
size_t const nPrevSelRowCount = m_rTableControl.getSelectedRowCount();
if ( !m_rTableControl.getInputHandler()->MouseButtonDown( m_rTableControl, rMEvt ) )
{
......@@ -204,7 +205,8 @@ namespace svt { namespace table
}
bool const isRowSelected = m_rTableControl.isRowSelected( hitRow );
if ( isRowSelected != wasRowSelected )
size_t const nCurSelRowCount = m_rTableControl.getSelectedRowCount();
if ( isRowSelected != wasRowSelected || nCurSelRowCount != nPrevSelRowCount )
{
m_aSelectHdl.Call( NULL );
}
......
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