summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorAriel Constenla-Haile <arielch@apache.org>2012-05-30 01:34:36 +0000
committerAriel Constenla-Haile <arielch@apache.org>2012-05-30 01:34:36 +0000
commitd81d9022c27648c993df820c01a6e1bf2bf1ad8a (patch)
tree5a4df60f5795a46b04a2da599943b4c7bdebf4b1 /svtools
parent0465df078a063637a2d2c73414ceba6cef7abd6c (diff)
i119149 - Fix triggering of selection changed event
Original author: Tsutomu Uchino <hanya.runo at gmail.com>
Notes
Notes: merged as: 8ac3ad62af9066736797330b48e19202da3efb19
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 6b5775005d1b..67adf76a1da5 100644
--- a/svtools/source/table/tabledatawindow.cxx
+++ b/svtools/source/table/tabledatawindow.cxx
@@ -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 );
}