mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-26 20:48:32 +02:00
gtk: calculate width and height the same way for Ellipse as for Rectangle (fixes bug #0013666)
git-svn-id: trunk@19838 -
This commit is contained in:
parent
ceeb124125
commit
b07d481b8d
@ -3929,7 +3929,10 @@ begin
|
|||||||
if not Result then Exit;
|
if not Result then Exit;
|
||||||
|
|
||||||
CalculateLeftTopWidthHeight(X1, Y1, X2, Y2, Left, Top, Width, Height);
|
CalculateLeftTopWidthHeight(X1, Y1, X2, Y2, Left, Top, Width, Height);
|
||||||
if (Width = 0) or (Height = 0) then Exit;
|
if (Width = 0) or (Height = 0) then Exit(True);
|
||||||
|
// X2, Y2 is not part of the rectangle
|
||||||
|
dec(Width);
|
||||||
|
dec(Height);
|
||||||
|
|
||||||
// first draw interior in brush color
|
// first draw interior in brush color
|
||||||
DCOrigin := DevCtx.Offset;
|
DCOrigin := DevCtx.Offset;
|
||||||
|
Loading…
Reference in New Issue
Block a user