summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-05-31 11:23:50 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-05-31 14:45:48 +0200
commit0a412cc13edf0904524ee2cf1e38ccc36b713065 (patch)
treee70e44e32d39f7eb1eca2a0da6e5cd41027c2fa2
parentd4fac516c2294596786321c040597c2659a06132 (diff)
n#764005 dmapper: don't insert "at page" anchored graphics as "as character"
Change-Id: Ibdde32014d2fc2fe43d59a5cc6ee7f722adcbfb6
-rw-r--r--writerfilter/source/dmapper/DomainMapper_Impl.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper_Impl.cxx b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
index 01d4b4600012..3faf817d4bbd 100644
--- a/writerfilter/source/dmapper/DomainMapper_Impl.cxx
+++ b/writerfilter/source/dmapper/DomainMapper_Impl.cxx
@@ -1524,6 +1524,10 @@ void DomainMapper_Impl::PushShapeContext( const uno::Reference< drawing::XShape
xProps->getPropertyValue(rPropNameSupplier.GetName(PROP_VERT_ORIENT_POSITION)) >>= nVertPosition;
if (nHoriPosition != 0 || nVertPosition != 0)
bIsGraphic = false;
+ text::TextContentAnchorType nAnchorType(text::TextContentAnchorType_AT_PARAGRAPH);
+ xProps->getPropertyValue(rPropNameSupplier.GetName( PROP_ANCHOR_TYPE )) >>= nAnchorType;
+ if (nAnchorType == text::TextContentAnchorType_AT_PAGE)
+ bIsGraphic = false;
xProps->setPropertyValue(
rPropNameSupplier.GetName( PROP_OPAQUE ),