[PATCH] SVG: treat skewX and skewY correct
Christina Rossmanith
ChrRossmanith at web.de
Sun Apr 1 12:14:10 PDT 2012
---
filter/source/svg/parserfragments.cxx | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/filter/source/svg/parserfragments.cxx b/filter/source/svg/parserfragments.cxx
index d70eaad..3de3d4b 100644
--- a/filter/source/svg/parserfragments.cxx
+++ b/filter/source/svg/parserfragments.cxx
@@ -93,16 +93,16 @@ void calcRotation(std::vector<geometry::AffineMatrix2D>& rTransforms,
void calcSkewX(std::vector<geometry::AffineMatrix2D>& rTransforms,
double fSkewAngle)
{
- geometry::AffineMatrix2D aMat(1.0,0.0,0.0,
- tan(fSkewAngle*M_PI/180),1.0,0.0);
+ geometry::AffineMatrix2D aMat(1.0,tan(fSkewAngle*M_PI/180),0.0,
+ 0.0,1.0,0.0);
rTransforms.push_back(aMat);
}
void calcSkewY(std::vector<geometry::AffineMatrix2D>& rTransforms,
double fSkewAngle)
{
- geometry::AffineMatrix2D aMat(1.0,tan(fSkewAngle*M_PI/180),0.0,
- 0.0,1.0,0.0);
+ geometry::AffineMatrix2D aMat(1.0,0.0,0.0,
+ tan(fSkewAngle*M_PI/180),1.0,0.0);
rTransforms.push_back(aMat);
}
--
1.7.4.1
--------------000103050200010402020701--
More information about the LibreOffice
mailing list