Kaydet (Commit) 0ac8d154 authored tarafından Katarina Behrens's avatar Katarina Behrens

tdf#90024: Don't set compare handler in constructor

it breaks sorting of conditional formatting manager table.
This reverts part of commit f92ab4da

Change-Id: I22d4b939cf888451bff6500fdf0d6b900903deb1
üst b7bb34d7
...@@ -98,7 +98,6 @@ SvSimpleTable::SvSimpleTable(SvSimpleTableContainer& rParent, WinBits nBits): ...@@ -98,7 +98,6 @@ SvSimpleTable::SvSimpleTable(SvSimpleTableContainer& rParent, WinBits nBits):
aHeaderBar.SetSelectHdl(LINK( this, SvSimpleTable, HeaderBarClick)); aHeaderBar.SetSelectHdl(LINK( this, SvSimpleTable, HeaderBarClick));
aHeaderBar.SetDoubleClickHdl(LINK( this, SvSimpleTable, HeaderBarDblClick)); aHeaderBar.SetDoubleClickHdl(LINK( this, SvSimpleTable, HeaderBarDblClick));
GetModel()->SetCompareHdl( LINK( this, SvSimpleTable, CompareHdl));
EnableCellFocus(); EnableCellFocus();
DisableTransientChildren(); DisableTransientChildren();
...@@ -280,6 +279,9 @@ void SvSimpleTable::SortByCol(sal_uInt16 nCol, bool bDir) ...@@ -280,6 +279,9 @@ void SvSimpleTable::SortByCol(sal_uInt16 nCol, bool bDir)
aHeaderBar.SetItemBits( nCol+1, HIB_STDSTYLE | HIB_UPARROW); aHeaderBar.SetItemBits( nCol+1, HIB_STDSTYLE | HIB_UPARROW);
GetModel()->SetSortMode(SortDescending); GetModel()->SetSortMode(SortDescending);
} }
GetModel()->SetCompareHdl( LINK( this, SvSimpleTable, CompareHdl));
if(nSortCol == nCol) if(nSortCol == nCol)
{ {
GetModel()->Reverse(); GetModel()->Reverse();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment