1 diff --git basic/source/classes/sbunoobj.cxx basic/source/classes/sbunoobj.cxx
2 index b02dca2..6abb00c 100644
3 --- basic/source/classes/sbunoobj.cxx
4 +++ basic/source/classes/sbunoobj.cxx
5 @@ -139,16 +139,19 @@ bool SbUnoObject::getDefaultPropName( SbUnoObject* pUnoObj, String& sDfltProp )
6 SbxVariable* getDefaultProp( SbxVariable* pRef )
8 SbxVariable* pDefaultProp = NULL;
9 - SbxObject* pObj = PTR_CAST(SbxObject,(SbxVariable*) pRef);
11 + if ( pRef->GetType() == SbxOBJECT )
13 - SbxBase* pObjVarObj = pRef->GetObject();
14 - pObj = PTR_CAST(SbxObject,pObjVarObj);
16 - if ( pObj && pObj->ISA(SbUnoObject) )
18 - SbUnoObject* pUnoObj = PTR_CAST(SbUnoObject,(SbxObject*)pObj);
19 - pDefaultProp = pUnoObj->GetDfltProperty();
20 + SbxObject* pObj = PTR_CAST(SbxObject,(SbxVariable*) pRef);
23 + SbxBase* pObjVarObj = pRef->GetObject();
24 + pObj = PTR_CAST(SbxObject,pObjVarObj);
26 + if ( pObj && pObj->ISA(SbUnoObject) )
28 + SbUnoObject* pUnoObj = PTR_CAST(SbUnoObject,(SbxObject*)pObj);
29 + pDefaultProp = pUnoObj->GetDfltProperty();