summaryrefslogtreecommitdiff
path: root/sdext/source/pdfimport/tree/drawtreevisiting.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sdext/source/pdfimport/tree/drawtreevisiting.cxx')
-rw-r--r--sdext/source/pdfimport/tree/drawtreevisiting.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sdext/source/pdfimport/tree/drawtreevisiting.cxx b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
index 626480d263c2..98a677e142ee 100644
--- a/sdext/source/pdfimport/tree/drawtreevisiting.cxx
+++ b/sdext/source/pdfimport/tree/drawtreevisiting.cxx
@@ -222,6 +222,15 @@ void DrawXmlEmitter::fillFrameProps( DrawElement& rElem,
if( rElem.MirrorVertical )
fRotate += M_PI;
+ // First check here is to skip image frame case
+ if (rElem.IsForText &&
+ (aScale.getX() < 0) &&
+ (aScale.getY() > 0) &&
+ (basegfx::fTools::equalZero(aScale.getX() + aScale.getY(), 0.0001)))
+ {
+ fRotate += M_PI;
+ }
+
// build transformation string
if( fShearX != 0.0 )
{