function aObjH = getobj(HG)
%GETOBJ  Retrieve Scribe Object from Handle Graphics handle.

%   Copyright 1984-2000 The MathWorks, Inc. 
%   $Revision: 1.15 $  $Date: 2000/08/01 22:09:47 $

ud = getscribeobjectdata(HG);
if isfield(ud, 'HandleStore') 
    aObjH = ud.HandleStore;
else  % if ud is [] or not a struct, isfield returns 0
    aObjH = [];
end

