diff options
Diffstat (limited to 'writerfilter/source/dmapper/GraphicImport.cxx')
-rw-r--r-- | writerfilter/source/dmapper/GraphicImport.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx index 02c348a05693..cc81850bfc86 100644 --- a/writerfilter/source/dmapper/GraphicImport.cxx +++ b/writerfilter/source/dmapper/GraphicImport.cxx @@ -872,6 +872,14 @@ void GraphicImport::lcl_attribute(Id nName, Value& rValue) eAnchorType = text::TextContentAnchorType_AT_CHARACTER; xShapeProps->setPropertyValue("AnchorType", uno::makeAny(eAnchorType)); + + if (m_pImpl->nVertRelation == text::RelOrientation::TEXT_LINE && bTextBox) + { + // TEXT_LINE to specific to to-char anchoring, we have to-para, so reset + // to default. + m_pImpl->nVertRelation = text::RelOrientation::FRAME; + } + if (m_pImpl->bLayoutInCell && bTextBox && m_pImpl->rDomainMapper.IsInTable() && m_pImpl->nHoriRelation == text::RelOrientation::PAGE_FRAME) m_pImpl->nHoriRelation = text::RelOrientation::FRAME; |