[Libreoffice-commits] core.git: svtools/source
Katarina Behrens
Katarina.Behrens at cib.de
Tue Apr 14 08:08:01 PDT 2015
svtools/source/contnr/simptabl.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 0ac8d1544a9b3b1b7c3c5ae5fed2943d11f8b8c9
Author: Katarina Behrens <Katarina.Behrens at cib.de>
Date: Tue Apr 14 17:02:40 2015 +0200
tdf#90024: Don't set compare handler in constructor
it breaks sorting of conditional formatting manager table.
This reverts part of commit f92ab4da51647a4353038b1c56
Change-Id: I22d4b939cf888451bff6500fdf0d6b900903deb1
diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx
index a6e07c5..1b2754b 100644
--- a/svtools/source/contnr/simptabl.cxx
+++ b/svtools/source/contnr/simptabl.cxx
@@ -98,7 +98,6 @@ SvSimpleTable::SvSimpleTable(SvSimpleTableContainer& rParent, WinBits nBits):
aHeaderBar.SetSelectHdl(LINK( this, SvSimpleTable, HeaderBarClick));
aHeaderBar.SetDoubleClickHdl(LINK( this, SvSimpleTable, HeaderBarDblClick));
- GetModel()->SetCompareHdl( LINK( this, SvSimpleTable, CompareHdl));
EnableCellFocus();
DisableTransientChildren();
@@ -280,6 +279,9 @@ void SvSimpleTable::SortByCol(sal_uInt16 nCol, bool bDir)
aHeaderBar.SetItemBits( nCol+1, HIB_STDSTYLE | HIB_UPARROW);
GetModel()->SetSortMode(SortDescending);
}
+
+ GetModel()->SetCompareHdl( LINK( this, SvSimpleTable, CompareHdl));
+
if(nSortCol == nCol)
{
GetModel()->Reverse();
More information about the Libreoffice-commits
mailing list