mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 13:59:31 +02:00
Qt5: fixed crash when calling stretchBlt() on invisible form. issue #39780
This commit is contained in:
parent
7dfdebb389
commit
7568b05082
@ -7023,12 +7023,12 @@ begin
|
||||
begin
|
||||
if SrcQDC.Parent <> nil then
|
||||
begin
|
||||
AWidgetID := QWidget_winId(SrcQDC.Parent);
|
||||
AWindow := QWidget_windowHandle(SrcQDC.Parent);
|
||||
if AWindow <> nil then
|
||||
AScreen := QWindow_screen(AWindow)
|
||||
else
|
||||
AScreen := QGuiApplication_primaryScreen();
|
||||
if AWindow = nil then
|
||||
exit(False);
|
||||
|
||||
AWidgetID := QWindow_winId(AWindow);
|
||||
AScreen := QWindow_screen(AWindow);
|
||||
|
||||
if (Rop = SRCCOPY) and not ((DstRect.Right < DstRect.Left) or (DstRect.Bottom < DstRect.Top)) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user