summaryrefslogtreecommitdiff
path: root/svx/source
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-03-29 20:54:50 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-03-29 21:01:46 +0000
commit62979b4cdf2153c38cf581a4e55eec70300abce2 (patch)
tree1070bf408f768acec7838d743f13b0d07f0aecd1 /svx/source
parent3d2d60960e8a8d5bc8a90199fe90d64ca798f55c (diff)
coverity#1194928 allocation too small for type
Change-Id: I4d1a3838ef95906b69bf52ba0d04c56859201db8
Diffstat (limited to 'svx/source')
-rw-r--r--svx/source/customshapes/EnhancedCustomShapeEngine.cxx2
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