Qt: fixed crash of TPostscriptCanvas. issue #20354

git-svn-id: trunk@32521 -
This commit is contained in:
zeljko 2011-09-27 06:12:53 +00:00
parent d551fda25d
commit 4049c78bd2

View File

@ -673,10 +673,16 @@ end;
procedure TQtWidgetSet.DCSetAntialiasing(CanvasHandle: HDC; AEnabled: Boolean);
var
DC: TQtDeviceContext absolute CanvasHandle;
DC: TQtDeviceContext;
begin
if IsValidDC(CanvasHandle) then
begin
if CanvasHandle = 1 then
DC := QtDefaultContext
else
DC := TQtDeviceContext(CanvasHandle);
DC.setRenderHint(QPainterAntialiasing, AEnabled);
end;
end;
procedure TQtWidgetSet.SetDesigning(AComponent: TComponent);