summaryrefslogtreecommitdiff
path: root/plugins/QuickSearch
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-07-16 07:51:44 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-07-16 07:51:44 +0000
commitba2acec9aad01af50c36a32a89f8fdcd634ffb66 (patch)
tree034d4f6e7bbb9b3f0d7f332fab6742b8d051eaae /plugins/QuickSearch
parent2370cfa1d9c1682c9eff761825b83684b0b544f4 (diff)
QuickSearch: another small fix for column arrow direction
git-svn-id: http://svn.miranda-ng.org/main/trunk@9821 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/QuickSearch')
-rw-r--r--plugins/QuickSearch/sr_window.pas6
1 files 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;