From ba2acec9aad01af50c36a32a89f8fdcd634ffb66 Mon Sep 17 00:00:00 2001 From: Alexey Kulakov Date: Wed, 16 Jul 2014 07:51:44 +0000 Subject: QuickSearch: another small fix for column arrow direction git-svn-id: http://svn.miranda-ng.org/main/trunk@9821 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/QuickSearch/sr_window.pas | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/QuickSearch/sr_window.pas b/plugins/QuickSearch/sr_window.pas index 6580d79938..e16b17c168 100644 --- a/plugins/QuickSearch/sr_window.pas +++ b/plugins/QuickSearch/sr_window.pas @@ -1355,7 +1355,7 @@ end; if ((PHDNotify(lParam)^.pitem^.mask and HDI_FORMAT )<>0) and ((PHDNotify(lParam)^.pitem^.fmt and HDF_CHECKBOX)<>0) then begin - i:=ListViewToColumn(PHDNotify(lParam)^.Item); + i:=ListViewToColumn(PHDNotify(lParam)^.{$IFDEF FPC}iItem{$ELSE}Item{$ENDIF}); if (PHDNotify(lParam)^.pitem^.fmt and HDF_CHECKED)=0 then // OLD state begin @@ -1369,7 +1369,7 @@ end; end; SendMessage( PHDNotify(lParam)^.hdr.hWndFrom,HDM_SETITEM, - PHDNotify(lParam)^.Item,tlparam(PHDNotify(lParam)^.pitem)); + PHDNotify(lParam)^.{$IFDEF FPC}iItem{$ELSE}Item{$ENDIF},tlparam(PHDNotify(lParam)^.pitem)); // result:=1; FillGrid; exit; @@ -2020,7 +2020,7 @@ begin zeromemory(@hdi,sizeof(hdi)); hdi.mask:=HDI_FORMAT; SendMessageW(header,HDM_GETITEM,qsopt.columnsort,tlparam(@hdi)); - if (qsopt.flags and QSO_SORTASC)<>0 then + if (qsopt.flags and QSO_SORTASC)=0 then hdi.fmt:=hdi.fmt or HDF_SORTDOWN else hdi.fmt:=hdi.fmt or HDF_SORTUP; -- cgit v1.2.3