mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 21:59:14 +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
|
if AColor = nil then
|
||||||
AColor := BackgroundBrush.getColor;
|
AColor := BackgroundBrush.getColor;
|
||||||
// stop asserts from qtlib
|
// stop asserts from qtlib
|
||||||
|
{issue #36411. Seem that assert triggered in Qt4 < 4.7 only.
|
||||||
if (w < x) or (h < y) then
|
if (w < x) or (h < y) then
|
||||||
exit;
|
exit;
|
||||||
|
}
|
||||||
q_DrawPlainRect(Widget, x, y, w, h, AColor, lineWidth, FillBrush);
|
q_DrawPlainRect(Widget, x, y, w, h, AColor, lineWidth, FillBrush);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -2480,8 +2480,10 @@ begin
|
|||||||
if AColor = nil then
|
if AColor = nil then
|
||||||
AColor := BackgroundBrush.getColor;
|
AColor := BackgroundBrush.getColor;
|
||||||
// stop asserts from qtlib
|
// stop asserts from qtlib
|
||||||
|
{issue #36411. Seem that assert triggered in Qt4 < 4.7 only.
|
||||||
if (w < x) or (h < y) then
|
if (w < x) or (h < y) then
|
||||||
exit;
|
exit;
|
||||||
|
}
|
||||||
q_DrawPlainRect(Widget, x, y, w, h, AColor, lineWidth, FillBrush);
|
q_DrawPlainRect(Widget, x, y, w, h, AColor, lineWidth, FillBrush);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user