diff options
-rw-r--r-- | svx/source/customshapes/EnhancedCustomShapeEngine.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx index fe25d8d866db..da3c5df7e87e 100644 --- a/svx/source/customshapes/EnhancedCustomShapeEngine.cxx +++ b/svx/source/customshapes/EnhancedCustomShapeEngine.cxx @@ -194,7 +194,7 @@ SdrObject* EnhancedCustomShapeEngine::ImplForceGroupWithText( const SdrObjCustom if ( bHasText ) { // #i37011# also create a text object and add at rPos + 1 - SdrTextObj* pTextObj = (SdrTextObj*)SdrObjFactory::MakeNewObject( + SdrObject* pTextObj = SdrObjFactory::MakeNewObject( pCustoObj->GetObjInventor(), OBJ_TEXT, 0L, pCustoObj->GetModel()); // Copy text content |