mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 04:39:36 +02:00
Qt: fixed bug inside SelectClipRgn(), reproducable on Mac & Linux only (now FastCube works fine ;) ).
git-svn-id: trunk@17653 -
This commit is contained in:
parent
21c26f68e4
commit
e23cf3a342
@ -4069,12 +4069,17 @@ begin
|
||||
QPainter_setClipRegion(Painter, TQtRegion(Rgn).Widget)
|
||||
else
|
||||
begin
|
||||
{$IFDEF UNIX}
|
||||
{looks like a qt bug, this helps to mac & linux}
|
||||
QPainter_setClipping(Painter, False);
|
||||
{$ELSE}
|
||||
EmptyRegion := QRegion_create;
|
||||
try
|
||||
QPainter_setClipRegion(Painter, EmptyRegion, QtNoClip);
|
||||
finally
|
||||
QRegion_destroy(EmptyRegion);
|
||||
end;
|
||||
{$ENDIF}
|
||||
end;
|
||||
if QPainter_hasClipping(Painter) then
|
||||
begin
|
||||
|
Loading…
Reference in New Issue
Block a user