summaryrefslogtreecommitdiff
path: root/writerfilter
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2014-05-16 15:57:09 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2014-05-16 16:32:17 +0200
commite25bdf7f602ce7d3d941c07b8c1cf5740e2b0a85 (patch)
treea9396bf544905f68bb70859222dd12e808fd79e6 /writerfilter
parente0d94ef4447734b27d15c50fdcea09d8200b2efe (diff)
DOCX import: make sure inline shapes are not in the background
Change-Id: I80d684662ac3f94bff4448fcdae94f9e69fd1590
Diffstat (limited to 'writerfilter')
-rw-r--r--writerfilter/source/dmapper/GraphicImport.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx
index 59f27fc5cd6e..1d19df08de5b 100644
--- a/writerfilter/source/dmapper/GraphicImport.cxx
+++ b/writerfilter/source/dmapper/GraphicImport.cxx
@@ -723,6 +723,10 @@ void GraphicImport::lcl_attribute(Id nName, Value& rValue)
uno::makeAny
(text::TextContentAnchorType_AS_CHARACTER));
+ // In Word, if a shape is anchored inline, that
+ // excludes being in the background.
+ xShapeProps->setPropertyValue("Opaque", uno::makeAny(true));
+
uno::Reference<lang::XServiceInfo> xServiceInfo(m_xShape, uno::UNO_QUERY_THROW);
// TextFrames can't be rotated. But for anything else,