summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--svx/source/unodraw/unoshap4.cxx9
1 files changed, 8 insertions, 1 deletions
diff --git a/svx/source/unodraw/unoshap4.cxx b/svx/source/unodraw/unoshap4.cxx
index 768896d9da36..d26546f89d48 100644
--- a/svx/source/unodraw/unoshap4.cxx
+++ b/svx/source/unodraw/unoshap4.cxx
@@ -174,7 +174,14 @@ bool SvxOle2Shape::setPropertyValueImpl( const OUString& rName, const SfxItemPro
OUString aPersistName;
if( rValue >>= aPersistName )
{
- static_cast<SdrOle2Obj*>(mpObj.get())->SetPersistName( aPersistName );
+ SdrOle2Obj *pOle;
+#if OSL_DEBUG_LEVEL > 0
+ pOle = dynamic_cast<SdrOle2Obj*>(mpObj.get());
+ assert(pOle);
+#else
+ pOle = static_cast<SdrOle2Obj*>(mpObj.get());
+#endif
+ pOle->SetPersistName( aPersistName );
return true;
}
break;