diff options
author | Kai Ahrens <ka@openoffice.org> | 2001-09-13 08:32:10 +0000 |
---|---|---|
committer | Kai Ahrens <ka@openoffice.org> | 2001-09-13 08:32:10 +0000 |
commit | 3e02413699495a200f0d6ea354c0295d88b957cf (patch) | |
tree | e97151ecd5e792c1303135fe765a002706f3fb6a /svx/source/unodraw/unopage.cxx | |
parent | e009dd368190706c618d6fb51b385d9a6b457ee4 (diff) |
#90020#: use persist name of OLE objects
Diffstat (limited to 'svx/source/unodraw/unopage.cxx')
-rw-r--r-- | svx/source/unodraw/unopage.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/svx/source/unodraw/unopage.cxx b/svx/source/unodraw/unopage.cxx index 821600ebca84..2c9e50520294 100644 --- a/svx/source/unodraw/unopage.cxx +++ b/svx/source/unodraw/unopage.cxx @@ -2,9 +2,9 @@ * * $RCSfile: unopage.cxx,v $ * - * $Revision: 1.16 $ + * $Revision: 1.17 $ * - * last change: $Author: cl $ $Date: 2001-07-10 07:49:48 $ + * last change: $Author: ka $ $Date: 2001-09-13 09:29:53 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -88,6 +88,7 @@ #include <rtl/memory.h> #include "svdobj.hxx" +#include "svdoole2.hxx" #include "svdpage.hxx" #include "svdmodel.hxx" #include "svdview.hxx" @@ -674,7 +675,7 @@ SvxShape* SvxDrawPage::CreateShapeByTypeAndInventor( sal_uInt16 nType, sal_uInt3 if( pObj && !pObj->IsEmptyPresObj() ) { SvPersist *pPersist = pPage->GetSdrPage()->GetModel()->GetPersist(); - const SvInfoObject *pInfo = pPersist->Find( pObj->GetName() ); + const SvInfoObject *pInfo = pPersist->Find( static_cast< SdrOle2Obj* >( pObj )->GetPersistName() ); DBG_ASSERT( pInfo, "no info object for OLE object found" ); const SvGlobalName aClassId( pInfo->GetClassName() ); |