summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx13
-rw-r--r--sdext/source/pdfimport/tree/pdfiprocessor.cxx2
2 files changed, 4 insertions, 11 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 568b25c2c818..a38050ad30b1 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -215,9 +215,9 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
if (rElem.MirrorVertical)
{
basegfx::B2DHomMatrix mat2;
- mat2.translate(-0.5, -0.5);
- mat2.scale(-1, -1);
- mat2.translate(0.5, 0.5);
+ mat2.translate(0, -0.5);
+ mat2.scale(1, -1);
+ mat2.translate(0, 0.5);
mat = mat * mat2;
}
@@ -949,13 +949,6 @@ void DrawXmlFinalizer::visit( FrameElement& elem, const std::list< Element* >::c
aGCProps[ "fo:padding-right" ] = "0cm";
aGCProps[ "fo:padding-bottom" ] = "0cm";
- // remark: vertical mirroring is done in current OOO by
- // mirroring horzontally and rotating 180 degrees
- // this is quaint, but unfortunately it seems
- // mirror=vertical is defined but not implemented in current code
- if( elem.MirrorVertical )
- aGCProps[ "style:mirror" ] = "horizontal";
-
StyleContainer::Style style1( "style:style", props1 );
StyleContainer::Style subStyle1( "style:graphic-properties", aGCProps );
style1.SubStyles.push_back(&subStyle1);
diff --git a/sdext/source/pdfimport/tree/pdfiprocessor.cxx b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
index 567f25654944..c91bef382ac9 100644
--- a/sdext/source/pdfimport/tree/pdfiprocessor.cxx
+++ b/sdext/source/pdfimport/tree/pdfiprocessor.cxx
@@ -350,7 +350,7 @@ void PDFIProcessor::setupImage(ImageId nImage)
pFrame->h = pImageElement->h = aScale.getY();
pFrame->ZOrder = m_nNextZOrder++;
- if (aScale.getY() > 0)
+ if (aScale.getY() < 0)
pFrame->MirrorVertical = pImageElement->MirrorVertical = true;
}