mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 23:59:10 +02:00
* Fix font name changing issues, patch by Dirk F, mantis #26550
git-svn-id: trunk@28331 -
This commit is contained in:
parent
3164bf66f5
commit
ff77bd1bf2
@ -416,8 +416,8 @@ begin
|
|||||||
result := FList.count-1;
|
result := FList.count-1;
|
||||||
while (result >= 0) and
|
while (result >= 0) and
|
||||||
( ({$ifdef CaseSense}CompareText{$else}CompareStr{$endif}
|
( ({$ifdef CaseSense}CompareText{$else}CompareStr{$endif}
|
||||||
(TMgrFont(FList[anIndex]).Filename, afilename) <> 0) or
|
(TMgrFont(FList[Result]).Filename, afilename) <> 0) or
|
||||||
(anIndex <> TMgrFont(FList[anIndex]).font^.face_index)
|
(anIndex <> TMgrFont(FList[Result]).font^.face_index)
|
||||||
) do
|
) do
|
||||||
dec (result);
|
dec (result);
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user