Skip to content

Commit 0f9c9b9

Browse files
committed
Fixed function tfontaliaslist.registeralias() who returned always false.
1 parent ab71663 commit 0f9c9b9

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/common/graphics/msefont.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -758,11 +758,12 @@ function tfontaliaslist.registeralias(const alias,name: string;
758758
int1: integer;
759759
str1,str2: string;
760760
begin
761-
result:= false;
761+
result:= true;
762762
str1:= uppercase(alias);
763763
str2:= uppercase(ancestor);
764764
while str2 <> '' do begin
765765
if str1 = str2 then begin
766+
result:= false;
766767
raise exception.create('Recursive fontalias "'
767768
+alias+'" name "'+name+'" caller "'+str1+'".');
768769
end;

0 commit comments

Comments
 (0)