mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-22 11:49:35 +01:00
Qt: fixed crash of TPostscriptCanvas. issue #20354
git-svn-id: trunk@32521 -
This commit is contained in:
parent
d551fda25d
commit
4049c78bd2
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user