LCL: Fix difference between rectangle fill and border when drawn by TLazCanvas.Rectangle().

This commit is contained in:
wp_xyz 2023-05-24 18:25:19 +02:00
parent 6e38c6564c
commit 3685317e2b

View File

@ -296,6 +296,8 @@ var
begin
b := Bounds;
SortRect (b);
dec(b.Right);
dec(b.Bottom);
// Optimize when filling everything
if (b.Left = 0) and (b.Top = 0) and (b.Right = Width) and (b.Bottom = Height)