diff options
author | Niklas Nebel <nn@openoffice.org> | 2001-10-04 19:00:19 +0000 |
---|---|---|
committer | Niklas Nebel <nn@openoffice.org> | 2001-10-04 19:00:19 +0000 |
commit | adb371d19f684d333ffad6a31460221a408e9814 (patch) | |
tree | ac9d25fef71ba1131f53475a308f12c22af25b7e /sc/source/ui/app/client.cxx | |
parent | 9f80d54c580daf19f2eb2dd3d174afab30e8921c (diff) |
#92722# name from InfoObject must be compared to GetPersistName
Diffstat (limited to 'sc/source/ui/app/client.cxx')
-rw-r--r-- | sc/source/ui/app/client.cxx | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/sc/source/ui/app/client.cxx b/sc/source/ui/app/client.cxx index 4d2ee6bbedac..22f2b1ce87b3 100644 --- a/sc/source/ui/app/client.cxx +++ b/sc/source/ui/app/client.cxx @@ -2,9 +2,9 @@ * * $RCSfile: client.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: nn $ $Date: 2001-10-04 19:09:46 $ + * last change: $Author: nn $ $Date: 2001-10-04 19:59:11 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -337,7 +337,8 @@ SdrOle2Obj* ScClient::GetDrawObj() { if ( pObject->GetObjIdentifier() == OBJ_OLE2 ) { - if ( ((SdrOle2Obj*)pObject)->GetName() == aName ) + // name from InfoObject is PersistName + if ( ((SdrOle2Obj*)pObject)->GetPersistName() == aName ) pOle2Obj = (SdrOle2Obj*)pObject; } pObject = aIter.Next(); @@ -491,16 +492,8 @@ void __EXPORT ScClient::ViewChanged( USHORT nAspect ) if ( aLogicRect.GetSize() != aVisSize ) { - if ( pObj->GetMiscStatus() & SVOBJ_MISCSTATUS_SERVERRESIZE ) - { - // SetLogicRect for an object with SERVERRESIZE flag would also change VisArea - DBG_ERROR("SERVERRESIZE object has differing sizes"); - } - else - { - aLogicRect.SetSize( aVisSize ); - pDrawObj->SetLogicRect( aLogicRect ); - } + aLogicRect.SetSize( aVisSize ); + pDrawObj->SetLogicRect( aLogicRect ); } } } |