mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 12:12:47 +02:00
Designer: Bug fix for DrawGrid. Use LogicalClientRect instead of ClientRect. r49385 from free-sparta branch by Maciej Izak.
git-svn-id: trunk@49532 -
This commit is contained in:
parent
140203ca19
commit
ef6fdb4d02
@ -3106,7 +3106,8 @@ begin
|
|||||||
ADDC.Canvas.Pen.Color := GridColor;
|
ADDC.Canvas.Pen.Color := GridColor;
|
||||||
ADDC.Canvas.Pen.Width := 1;
|
ADDC.Canvas.Pen.Width := 1;
|
||||||
ADDC.Canvas.Pen.Style := psSolid;
|
ADDC.Canvas.Pen.Style := psSolid;
|
||||||
DrawGrid(ADDC.Canvas.Handle, AWinControl.ClientRect, GridSizeX, GridSizeY);
|
DrawGrid(ADDC.Canvas.Handle, TControlAccess(AWinControl).GetLogicalClientRect,
|
||||||
|
GridSizeX, GridSizeY);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if ShowBorderSpacing then
|
if ShowBorderSpacing then
|
||||||
|
Loading…
Reference in New Issue
Block a user