diff options
author | Ivo Hinkelmann <ihi@openoffice.org> | 2007-04-16 12:13:58 +0000 |
---|---|---|
committer | Ivo Hinkelmann <ihi@openoffice.org> | 2007-04-16 12:13:58 +0000 |
commit | db3f97b9fad3fc5f6469ed6b0bec01eb6b0494ce (patch) | |
tree | 7c9ad9df0d66ea10a11fbdea0a72ce6a5a7d8710 /xmloff | |
parent | a9a52f0b881e2a9f3e8c802e6e08d95b68d65f24 (diff) |
INTEGRATION: CWS impressrng01_SRC680 (1.7.98); FILE MERGED
2007/04/05 09:35:51 af 1.7.98.1: #i42375# IsLinkedEmbeddedObject() returns false for empty hrefs.
Diffstat (limited to 'xmloff')
-rw-r--r-- | xmloff/source/transform/FrameOASISTContext.cxx | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/xmloff/source/transform/FrameOASISTContext.cxx b/xmloff/source/transform/FrameOASISTContext.cxx index 86c02d9d3d94..14418b20419c 100644 --- a/xmloff/source/transform/FrameOASISTContext.cxx +++ b/xmloff/source/transform/FrameOASISTContext.cxx @@ -4,9 +4,9 @@ * * $RCSfile: FrameOASISTContext.cxx,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: obo $ $Date: 2006-09-17 11:24:31 $ + * last change: $Author: ihi $ $Date: 2007-04-16 13:13:58 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -88,6 +88,12 @@ sal_Bool XMLFrameOASISTransformerContext::IsLinkedEmbeddedObject( IsXMLToken( aLocalName, XML_HREF ) ) { OUString sHRef( rAttrList->getValueByIndex( i ) ); + if (sHRef.getLength() == 0) + { + // When the href is empty then the object is not linked but + // a placeholder. + return sal_False; + } GetTransformer().ConvertURIToOOo( sHRef, sal_True ); return !(sHRef.getLength() && '#'==sHRef[0]); } |