summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/drawvie3.cxx
diff options
context:
space:
mode:
authorRĂ¼diger Timm <rt@openoffice.org>2004-11-26 15:22:53 +0000
committerRĂ¼diger Timm <rt@openoffice.org>2004-11-26 15:22:53 +0000
commit2480e07364f5a2789e47a3de63c2a1afec107fc0 (patch)
treedc5fafd97f5094f72e9b5cc29ba93121169da771 /sc/source/ui/view/drawvie3.cxx
parent6bbd35c45d6a8e75aaa3786bcad84406036e4d03 (diff)
INTEGRATION: CWS leanobjects (1.5.168); FILE MERGED
2004/11/18 11:11:25 mba 1.5.168.1: #i37278#: make objects loadable on demand
Diffstat (limited to 'sc/source/ui/view/drawvie3.cxx')
-rw-r--r--sc/source/ui/view/drawvie3.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/ui/view/drawvie3.cxx b/sc/source/ui/view/drawvie3.cxx
index 17e6baeaefce..1cf4210047f1 100644
--- a/sc/source/ui/view/drawvie3.cxx
+++ b/sc/source/ui/view/drawvie3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: drawvie3.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: rt $ $Date: 2004-07-12 15:30:15 $
+ * last change: $Author: rt $ $Date: 2004-11-26 16:22:53 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -199,8 +199,11 @@ void ScDrawView::UpdateIMap( SdrObject* pObj )
if ( pObj->ISA( SdrGrafObj ) )
aGraphic = ( (SdrGrafObj*) pObj )->GetGraphic();
else
- aGraphic = ScDrawLayer::GetGraphicFromOle2Obj(
- (const SdrOle2Obj*) pObj );
+ {
+ Graphic* pGraphic = ((const SdrOle2Obj*) pObj )->GetGraphic();
+ if ( pGraphic )
+ aGraphic = *pGraphic;
+ }
ScIMapDlgSet( aGraphic, pImageMap, &aTargetList, pObj ); // aus imapwrap