mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 04:49:29 +02:00
Qt: fix TQtDeviceContext.getDepth() for unassigned device pointer.
git-svn-id: trunk@22926 -
This commit is contained in:
parent
f25b61f322
commit
750e586cee
@ -2688,6 +2688,7 @@ function TQtDeviceContext.getDepth: integer;
|
|||||||
var
|
var
|
||||||
device: QPaintDeviceH;
|
device: QPaintDeviceH;
|
||||||
begin
|
begin
|
||||||
|
device := QPainter_device(Widget);
|
||||||
Result := QPaintDevice_depth(Device);
|
Result := QPaintDevice_depth(Device);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user