Qt: fix TQtDeviceContext.getDepth() for unassigned device pointer.

git-svn-id: trunk@22926 -
This commit is contained in:
zeljko 2009-12-02 14:22:14 +00:00
parent f25b61f322
commit 750e586cee

View File

@ -2688,6 +2688,7 @@ function TQtDeviceContext.getDepth: integer;
var
device: QPaintDeviceH;
begin
device := QPainter_device(Widget);
Result := QPaintDevice_depth(Device);
end;