Qt: fixed bug inside SelectClipRgn(), reproducable on Mac & Linux only (now FastCube works fine ;) ).

git-svn-id: trunk@17653 -
This commit is contained in:
zeljko 2008-12-01 19:14:24 +00:00
parent 21c26f68e4
commit e23cf3a342

View File

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