diff options
author | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 15:17:20 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2004-11-26 15:17:20 +0000 |
commit | f7dce0a880e4549f8c4e8c9ef8e5e14a94ad427d (patch) | |
tree | 308a2384aa243eb4cee41b5bdd0f427f9bd6634e /sd | |
parent | c10e8631dc8cedf9ec3818734ef598b42121e7f1 (diff) |
INTEGRATION: CWS leanobjects (1.25.74); FILE MERGED
2004/11/18 11:11:06 mba 1.25.74.1: #i37278#: make objects loadable on demand
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/core/drawdoc2.cxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sd/source/core/drawdoc2.cxx b/sd/source/core/drawdoc2.cxx index 5013aea8d968..51f4c698aaba 100644 --- a/sd/source/core/drawdoc2.cxx +++ b/sd/source/core/drawdoc2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: drawdoc2.cxx,v $ * - * $Revision: 1.26 $ + * $Revision: 1.27 $ * - * last change: $Author: hr $ $Date: 2004-11-26 15:00:28 $ + * last change: $Author: rt $ $Date: 2004-11-26 16:17:20 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -1370,8 +1370,9 @@ IMapObject* SdDrawDocument::GetHitIMapObject( SdrObject* pObj, } else if ( pObj->ISA( SdrOle2Obj ) ) // OLE-Objekt { - ::uno::Reference < embed::XVisualObject > xObj( ( (SdrOle2Obj*) pObj )->GetObjRef(), uno::UNO_QUERY ); - if ( xObj.is() ) + // TODO/LEAN: it looks strange to force object loading here + ::uno::Reference < embed::XEmbeddedObject > xObj( ( (SdrOle2Obj*) pObj )->GetObjRef() ); + svt::EmbeddedObjectRef::TryRunningState( xObj ); { awt::Size aSize = xObj->getVisualAreaSize( ( (SdrOle2Obj*) pObj )->GetAspect() ); aGraphSize = Size( aSize.Width, aSize.Height ); |