Qt,Qt5: fixed FrameRect() drawing. issue #36411

git-svn-id: trunk@62363 -
This commit is contained in:
zeljko 2019-12-09 16:23:47 +00:00
parent 9bbb6b0a30
commit 04b39226b6
2 changed files with 4 additions and 0 deletions

View File

@ -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;

View File

@ -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;