summaryrefslogtreecommitdiff
path: root/xmloff/source
diff options
context:
space:
mode:
authorMichael Brauer <mib@openoffice.org>2001-11-12 13:23:47 +0000
committerMichael Brauer <mib@openoffice.org>2001-11-12 13:23:47 +0000
commita175c20bbc0ac7d36fdda7e17ea139ac041d48c4 (patch)
tree2f047cffcc94d7056df22b17a6d7c4d31a99c72d /xmloff/source
parenta2bdb9444c52be5be60767a6d1c1f4c47a4a0444 (diff)
#94311#: Insert applets even if there is no codebase URL
Diffstat (limited to 'xmloff/source')
-rw-r--r--xmloff/source/text/XMLTextFrameContext.cxx13
1 files changed, 7 insertions, 6 deletions
diff --git a/xmloff/source/text/XMLTextFrameContext.cxx b/xmloff/source/text/XMLTextFrameContext.cxx
index 0cbe10da07fd..ac728d7f28bc 100644
--- a/xmloff/source/text/XMLTextFrameContext.cxx
+++ b/xmloff/source/text/XMLTextFrameContext.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: XMLTextFrameContext.cxx,v $
*
- * $Revision: 1.50 $
+ * $Revision: 1.51 $
*
- * last change: $Author: mib $ $Date: 2001-10-16 10:56:37 $
+ * last change: $Author: mib $ $Date: 2001-11-12 14:23:47 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -905,10 +905,11 @@ XMLTextFrameContext::XMLTextFrameContext(
}
}
- if( (XML_TEXT_FRAME_APPLET == nType || XML_TEXT_FRAME_PLUGIN == nType ||
- XML_TEXT_FRAME_GRAPHIC == nType || XML_TEXT_FRAME_OBJECT == nType ||
- XML_TEXT_FRAME_OBJECT_OLE == nType)
- && !sHRef.getLength() )
+ if( ( (XML_TEXT_FRAME_PLUGIN == nType || XML_TEXT_FRAME_GRAPHIC == nType ||
+ XML_TEXT_FRAME_OBJECT == nType ||
+ XML_TEXT_FRAME_OBJECT_OLE == nType) &&
+ !sHRef.getLength() ) ||
+ ( XML_TEXT_FRAME_APPLET == nType && !sCode.getLength() ) )
return; // no URL: no image or OLE object
Create( sal_True );