You've already forked lazarus-ccr
tvplanit: Fix memory leak in TVpExCanvas.DrawRotatedText (temporary font not destroyed).
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@4930 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -777,6 +777,7 @@ begin
|
||||
finally
|
||||
// Restore previously used font.
|
||||
FCanvas.Font.Assign(OldFont);
|
||||
OldFont.Free;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
@ -785,7 +785,7 @@ begin
|
||||
if lbFormats.ItemIndex > -1 then begin
|
||||
Idx := Prn.Find(lbFormats.Items[lbFormats.ItemIndex]);
|
||||
if Idx > - 1 then
|
||||
Prn.CurFormat := Idx;
|
||||
Prn.CurFormat := Idx;
|
||||
{Prn.CurFormat := lbFormats.ItemIndex; }
|
||||
end;
|
||||
Prn.NotifyLinked;
|
||||
|
Reference in New Issue
Block a user