diff options
Diffstat (limited to 'sw/source/uibase/ribbar/concustomshape.cxx')
-rw-r--r-- | sw/source/uibase/ribbar/concustomshape.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/ribbar/concustomshape.cxx b/sw/source/uibase/ribbar/concustomshape.cxx index 0c21879ed15a..10f85f6240de 100644 --- a/sw/source/uibase/ribbar/concustomshape.cxx +++ b/sw/source/uibase/ribbar/concustomshape.cxx @@ -83,7 +83,7 @@ bool ConstCustomShape::MouseButtonDown(const MouseEvent& rMEvt) { SetAttributes( pObj ); bool bForceNoFillStyle = false; - if ( ((SdrObjCustomShape*)pObj)->UseNoFillStyle() ) + if ( static_cast<SdrObjCustomShape*>(pObj)->UseNoFillStyle() ) bForceNoFillStyle = true; SfxItemSet aAttr( m_pView->GetPool() ); @@ -169,7 +169,7 @@ void ConstCustomShape::SetAttributes( SdrObject* pObj ) pObj->SetMergedItem( SdrTextVertAdjustItem( SDRTEXTVERTADJUST_CENTER ) ); pObj->SetMergedItem( SdrTextHorzAdjustItem( SDRTEXTHORZADJUST_BLOCK ) ); pObj->SetMergedItem( makeSdrTextAutoGrowHeightItem( false ) ); - ((SdrObjCustomShape*)pObj)->MergeDefaultAttributes( &aCustomShape ); + static_cast<SdrObjCustomShape*>(pObj)->MergeDefaultAttributes( &aCustomShape ); } } |