summaryrefslogtreecommitdiff
path: root/svx/source/unodraw/unopage.cxx
diff options
context:
space:
mode:
authorChristian Lippka <cl@openoffice.org>2001-07-10 06:53:54 +0000
committerChristian Lippka <cl@openoffice.org>2001-07-10 06:53:54 +0000
commitc9dd9d73592a7b5ac92fb9adb563002cb500f91f (patch)
tree2098a0580cfe9d3276025b5544eb23be70d8d611 /svx/source/unodraw/unopage.cxx
parent03f4310740a9eeee2b42704b9202aba4ea51b511 (diff)
#89061# optimized api for xml
Diffstat (limited to 'svx/source/unodraw/unopage.cxx')
-rw-r--r--svx/source/unodraw/unopage.cxx12
1 files changed, 4 insertions, 8 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx
index 1f32d13eacd5..821600ebca84 100644
--- a/svx/source/unodraw/unopage.cxx
+++ b/svx/source/unodraw/unopage.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: unopage.cxx,v $
*
- * $Revision: 1.15 $
+ * $Revision: 1.16 $
*
- * last change: $Author: aw $ $Date: 2001-06-12 13:20:39 $
+ * last change: $Author: cl $ $Date: 2001-07-10 07:49:48 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -239,10 +239,6 @@ void SAL_CALL SvxDrawPage::add( const Reference< drawing::XShape >& xShape )
pObj->SetModel(pModel);
pPage->InsertObject( pObj );
}
- else
- {
- return;
- }
if(pObj == NULL)
return;
@@ -652,7 +648,7 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt3
pRet = new SvxShapeCaption( pObj );
break;
case OBJ_TEXT:
- pRet = new SvxShape( pObj );
+ pRet = new SvxShapeText( pObj );
break;
case OBJ_GRAF:
pRet = new SvxGraphicObject( pObj );
@@ -731,7 +727,7 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt3
break;
default: // unbekanntes 2D-Objekt auf der Page
DBG_ERROR("Nicht implementierter Starone-Shape erzeugt! [CL]");
- pRet = new SvxShape( pObj );
+ pRet = new SvxShapeText( pObj );
break;
}
break;