* Fixes in DoCopyProps. Fixes issue #40362

This commit is contained in:
Michaël Van Canneyt 2023-10-12 11:11:33 +02:00
parent 0d37b3c6ec
commit 9ef5b8bce9
3 changed files with 11 additions and 7 deletions

View File

@ -30,6 +30,7 @@ begin
begin
self.Style := Style;
self.Image := Image;
self.Pattern := Pattern;
end;
inherited DoCopyProps(From);
end;

View File

@ -37,13 +37,14 @@ end;
procedure TFPCustomFont.DoCopyProps (From:TFPCanvasHelper);
begin
with from as TFPCustomFont do
begin
self.FName := FName;
self.FSize := FSize;
self.FFPColor := FFPColor;
self.FFlags := FFlags;
end;
if From is TFPCustomFont then
with from as TFPCustomFont do
begin
self.FName := FName;
self.FSize := FSize;
self.FOrientation := FOrientation
end;
Inherited;
end;
function TFPCustomFont.CopyFont : TFPCustomFont;

View File

@ -57,6 +57,8 @@ begin
self.Width := Width;
self.Mode := Mode;
self.pattern := pattern;
self.EndCap := EndCap;
self.JoinStyle := JoinStyle;
end;
inherited;
end;