mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-01 14:39:28 +01:00
SynEdit: fix range error. Issue #0032067 Patch by Pascal R.
git-svn-id: trunk@55606 -
This commit is contained in:
parent
bea0a870ff
commit
c02c9089b0
@ -594,7 +594,12 @@ begin
|
||||
if Result <> 0 then
|
||||
exit;
|
||||
|
||||
Result := PtrInt(m2) - PtrInt(m1);
|
||||
if Mark2 > Mark1 then
|
||||
Result := 1
|
||||
else if Mark1 > Mark2 then
|
||||
Result := -1
|
||||
else
|
||||
Result := 0;
|
||||
end;
|
||||
|
||||
procedure TSynEditMarkLine.Sort(PrimaryOrder: TSynEditMarkSortOrder;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user