mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-07 18:36:13 +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
|
||||
device: QPaintDeviceH;
|
||||
begin
|
||||
device := QPainter_device(Widget);
|
||||
Result := QPaintDevice_depth(Device);
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user