mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-12 19:49:31 +02:00
* Fixes in DoCopyProps. Fixes issue #40362
This commit is contained in:
parent
0d37b3c6ec
commit
9ef5b8bce9
@ -30,6 +30,7 @@ begin
|
||||
begin
|
||||
self.Style := Style;
|
||||
self.Image := Image;
|
||||
self.Pattern := Pattern;
|
||||
end;
|
||||
inherited DoCopyProps(From);
|
||||
end;
|
||||
|
@ -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;
|
||||
|
@ -57,6 +57,8 @@ begin
|
||||
self.Width := Width;
|
||||
self.Mode := Mode;
|
||||
self.pattern := pattern;
|
||||
self.EndCap := EndCap;
|
||||
self.JoinStyle := JoinStyle;
|
||||
end;
|
||||
inherited;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user