diff options
Diffstat (limited to 'writerfilter/source/dmapper/GraphicImport.cxx')
-rw-r--r-- | writerfilter/source/dmapper/GraphicImport.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/writerfilter/source/dmapper/GraphicImport.cxx b/writerfilter/source/dmapper/GraphicImport.cxx index a520cda4ddc4..17d174b4a34b 100644 --- a/writerfilter/source/dmapper/GraphicImport.cxx +++ b/writerfilter/source/dmapper/GraphicImport.cxx @@ -202,6 +202,7 @@ public: WrapPolygon::Pointer_t mpWrapPolygon; sal_Int32 nLeftMargin; + sal_Int32 nLeftMarginOrig = 0; sal_Int32 nRightMargin; sal_Int32 nTopMargin; sal_Int32 nBottomMargin; @@ -977,6 +978,7 @@ void GraphicImport::ProcessShapeOptions(Value const & rValue) { case NS_ooxml::LN_CT_Anchor_distL: m_pImpl->nLeftMargin = nIntValue / 360; + m_pImpl->nLeftMarginOrig = m_pImpl->nLeftMargin; break; case NS_ooxml::LN_CT_Anchor_distT: //todo: changes have to be applied depending on the orientation, see SwWW8ImplReader::AdjustULWrapForWordMargins() @@ -1501,6 +1503,11 @@ bool GraphicImport::IsGraphic() const return m_pImpl->bIsGraphic; } +sal_Int32 GraphicImport::GetLeftMarginOrig() const +{ + return m_pImpl->nLeftMarginOrig; +} + } } |