diff options
author | Kurt Zenker <kz@openoffice.org> | 2007-05-09 12:22:08 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2007-05-09 12:22:08 +0000 |
commit | d7b2fea92240b38305750e9cd6c830265cd484cc (patch) | |
tree | c33f0e456b4727f5fd79a0810078fe3267112c43 /basegfx/source/matrix | |
parent | ded1e790539040803e7442d04b12585fd59bf965 (diff) |
INTEGRATION: CWS aw048 (1.12.20); FILE MERGED
2007/04/11 13:28:01 aw 1.12.20.1: #i76239# for shear commands on matrices, do not test against 1.0, but against 0.0
Diffstat (limited to 'basegfx/source/matrix')
-rw-r--r-- | basegfx/source/matrix/b3dhommatrix.cxx | 19 |
1 files changed, 8 insertions, 11 deletions
diff --git a/basegfx/source/matrix/b3dhommatrix.cxx b/basegfx/source/matrix/b3dhommatrix.cxx index ecb319752d87..d87b1072a639 100644 --- a/basegfx/source/matrix/b3dhommatrix.cxx +++ b/basegfx/source/matrix/b3dhommatrix.cxx @@ -4,9 +4,9 @@ * * $RCSfile: b3dhommatrix.cxx,v $ * - * $Revision: 1.12 $ + * $Revision: 1.13 $ * - * last change: $Author: ihi $ $Date: 2006-11-14 14:06:55 $ + * last change: $Author: kz $ $Date: 2007-05-09 13:22:08 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -296,9 +296,8 @@ namespace basegfx void B3DHomMatrix::shearXY(double fSx, double fSy) { - const double fOne(1.0); - - if(!fTools::equal(fOne, fSx) || !fTools::equal(fOne, fSy)) + // #i76239# do not test againt 1.0, but against 0.0. We are talking about a value not on the diagonal (!) + if(!fTools::equalZero(fSx) || !fTools::equalZero(fSy)) { Impl3DHomMatrix aShearXYMat; @@ -311,9 +310,8 @@ namespace basegfx void B3DHomMatrix::shearYZ(double fSy, double fSz) { - const double fOne(1.0); - - if(!fTools::equal(fOne, fSy) || !fTools::equal(fOne, fSz)) + // #i76239# do not test againt 1.0, but against 0.0. We are talking about a value not on the diagonal (!) + if(!fTools::equalZero(fSy) || !fTools::equalZero(fSz)) { Impl3DHomMatrix aShearYZMat; @@ -326,9 +324,8 @@ namespace basegfx void B3DHomMatrix::shearXZ(double fSx, double fSz) { - const double fOne(1.0); - - if(!fTools::equal(fOne, fSx) || !fTools::equal(fOne, fSz)) + // #i76239# do not test againt 1.0, but against 0.0. We are talking about a value not on the diagonal (!) + if(!fTools::equalZero(fSx) || !fTools::equalZero(fSz)) { Impl3DHomMatrix aShearXZMat; |