diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2008-01-28 15:38:04 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2008-01-28 15:38:04 +0000 |
commit | 3dff58d3b2d9d39b73df7c3fe7f46073675da0be (patch) | |
tree | 3fa504c20ce0d3bf1fa3c43da8cae7959a1b6159 /svx | |
parent | 9b1f76485d50a2a25d437d141576f4f6e62344c8 (diff) |
INTEGRATION: CWS impress132 (1.164.76); FILE MERGED
2007/10/31 13:52:27 af 1.164.76.1: #i81673# Reverted an optimization that does not take SwXShape objects into account.
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/unodraw/unoshape.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/svx/source/unodraw/unoshape.cxx b/svx/source/unodraw/unoshape.cxx index 891bd6a05ab4..0e8f400caabd 100644 --- a/svx/source/unodraw/unoshape.cxx +++ b/svx/source/unodraw/unoshape.cxx @@ -4,9 +4,9 @@ * * $RCSfile: unoshape.cxx,v $ * - * $Revision: 1.165 $ + * $Revision: 1.166 $ * - * last change: $Author: obo $ $Date: 2008-01-10 12:49:30 $ + * last change: $Author: vg $ $Date: 2008-01-28 16:38:04 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -4609,7 +4609,7 @@ uno::Reference< drawing::XShape > GetXShapeForSdrObject( SdrObject* pObj ) throw /** returns the SdrObject from the given StarOffice API wrapper */ SdrObject* GetSdrObjectFromXShape( uno::Reference< drawing::XShape > xShape ) throw() { - SvxShape* pShape = dynamic_cast< SvxShape* >( xShape.get() ); + SvxShape* pShape = SvxShape::getImplementation( xShape ); return pShape ? pShape->GetSdrObject() : 0; } @@ -4617,6 +4617,6 @@ SdrObject* GetSdrObjectFromXShape( uno::Reference< drawing::XShape > xShape ) th SdrObject* SdrObject::getSdrObjectFromXShape( const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >& xInt ) { - SvxShape* pSvxShape = dynamic_cast< SvxShape* >( xInt.get() ); + SvxShape* pSvxShape = SvxShape::getImplementation( xInt ); return pSvxShape ? pSvxShape->GetSdrObject() : 0; } |