diff options
Diffstat (limited to 'basic/source/sbx/sbxexec.cxx')
-rw-r--r-- | basic/source/sbx/sbxexec.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/basic/source/sbx/sbxexec.cxx b/basic/source/sbx/sbxexec.cxx index ab9a0f029b94..9c64095768f4 100644 --- a/basic/source/sbx/sbxexec.cxx +++ b/basic/source/sbx/sbxexec.cxx @@ -92,10 +92,10 @@ static SbxVariable* QualifiedName { // It follows still an objectelement. The current element // had to be a SBX-Object or had to deliver such an object! - pObj = PTR_CAST(SbxObject,static_cast<SbxVariable*>(refVar)); + pObj = dynamic_cast<SbxObject*>( static_cast<SbxVariable*>(refVar) ); if( !pObj ) // Then it had to deliver an object - pObj = PTR_CAST(SbxObject,refVar->GetObject()); + pObj = dynamic_cast<SbxObject*>( refVar->GetObject() ); refVar.Clear(); if( !pObj ) break; |