summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmloff/source/text/txtparae.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/xmloff/source/text/txtparae.cxx b/xmloff/source/text/txtparae.cxx
index 3d27ac07ffeb..c9d84b5885d0 100644
--- a/xmloff/source/text/txtparae.cxx
+++ b/xmloff/source/text/txtparae.cxx
@@ -120,6 +120,7 @@
#include <algorithm>
#include <iterator>
#include <officecfg/Office/Common.hxx>
+#include <vcl/graph.hxx>
using namespace ::std;
using namespace ::com::sun::star;
@@ -3178,7 +3179,12 @@ void XMLTextParagraphExport::_exportTextGraphic(
if (xGraphic.is())
{
SvXMLElementExport aElement(GetExport(), XML_NAMESPACE_DRAW, XML_IMAGE, false, true );
- GetExport().AddEmbeddedXGraphicAsBase64(xGraphic);
+
+ Graphic aGraphic(xGraphic);
+ if (aGraphic.getOriginURL().isEmpty()) // don't add the base64 if the origin URL is set (image is from an external URL)
+ {
+ GetExport().AddEmbeddedXGraphicAsBase64(xGraphic);
+ }
}
}