mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 00:39:44 +02:00
Qt,Qt5: fixed FrameRect() drawing. issue #36411
git-svn-id: trunk@62363 -
This commit is contained in:
parent
9bbb6b0a30
commit
04b39226b6
@ -2472,8 +2472,10 @@ begin
|
||||
if AColor = nil then
|
||||
AColor := BackgroundBrush.getColor;
|
||||
// stop asserts from qtlib
|
||||
{issue #36411. Seem that assert triggered in Qt4 < 4.7 only.
|
||||
if (w < x) or (h < y) then
|
||||
exit;
|
||||
}
|
||||
q_DrawPlainRect(Widget, x, y, w, h, AColor, lineWidth, FillBrush);
|
||||
end;
|
||||
|
||||
|
@ -2480,8 +2480,10 @@ begin
|
||||
if AColor = nil then
|
||||
AColor := BackgroundBrush.getColor;
|
||||
// stop asserts from qtlib
|
||||
{issue #36411. Seem that assert triggered in Qt4 < 4.7 only.
|
||||
if (w < x) or (h < y) then
|
||||
exit;
|
||||
}
|
||||
q_DrawPlainRect(Widget, x, y, w, h, AColor, lineWidth, FillBrush);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user