[Libreoffice-commits] core.git: svtools/source
Ariel Constenla-Haile
arielch at apache.org
Mon Apr 1 05:43:06 PDT 2013
svtools/source/table/tabledatawindow.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 8ac3ad62af9066736797330b48e19202da3efb19
Author: Ariel Constenla-Haile <arielch at apache.org>
Date: Wed May 30 01:34:36 2012 +0000
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
diff --git a/svtools/source/table/tabledatawindow.cxx b/svtools/source/table/tabledatawindow.cxx
index 5ed3161..c9089c5 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 );
}
More information about the Libreoffice-commits
mailing list