mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-16 04:40:40 +01:00
laz_xmlcfg: fixed CompareDomStrings, this fixes saving help options too
git-svn-id: trunk@11253 -
This commit is contained in:
parent
060ce0c803
commit
6b2e1a7219
@ -758,8 +758,8 @@ function CompareDOMStrings(const s1, s2: DOMPChar; l1, l2: integer): integer;
|
||||
var i: integer;
|
||||
begin
|
||||
Result:=l1-l2;
|
||||
i:=1;
|
||||
while (i<=l1) and (Result=0) do begin
|
||||
i:=0;
|
||||
while (i<l1) and (Result=0) do begin
|
||||
Result:=ord(s1[i])-ord(s2[i]);
|
||||
inc(i);
|
||||
end;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user