summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKatarina Behrens <Katarina.Behrens@cib.de>2015-04-14 17:02:40 +0200
committerKatarina Behrens <Katarina.Behrens@cib.de>2015-04-14 17:06:03 +0200
commit0ac8d1544a9b3b1b7c3c5ae5fed2943d11f8b8c9 (patch)
tree7e8f2a901a7ba33a2c35f5fecdd9c49d37594952
parentb7bb34d74c5c764844f5b87483d09a61d3088695 (diff)
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
-rw-r--r--svtools/source/contnr/simptabl.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/contnr/simptabl.cxx b/svtools/source/contnr/simptabl.cxx
index a6e07c52d7fc..1b2754b9b915 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();