summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-05-30 01:34:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-04-01 13:42:44 +0100
commit8ac3ad62af9066736797330b48e19202da3efb19 (patch)
tree603ea1b8933261dc34b9842c42b9062cc6ca4a4b /svtools
parentbf52bd94a9395b0a6e96a6648bcb3a2aa301f32d (diff)
Resolves: #i119149# - Fix triggering of selection changed event
Original author: Tsutomu Uchino <hanya.runo at gmail.com> (cherry picked from commit d81d9022c27648c993df820c01a6e1bf2bf1ad8a) Change-Id: I6d485c2c6f9c81f67c07c313737db637991232fc
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/table/tabledatawindow.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/table/tabledatawindow.cxx b/svtools/source/table/tabledatawindow.cxx
index 5ed31618071c..c9089c58ef9d 100644
--- a/svtools/source/table/tabledatawindow.cxx
+++ b/svtools/source/table/tabledatawindow.cxx
@@ -185,6 +185,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 ) )
{
@@ -193,7 +194,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 );
}