diff options
author | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-12 14:46:16 (GMT) |
---|---|---|
committer | Bjørn Erik Nilsen <bjorn.nilsen@nokia.com> | 2009-06-12 14:54:18 (GMT) |
commit | 56b93b836f70e121540e8d8da9447f5dc6e1fdd6 (patch) | |
tree | 8354b39dc369b5958d57633cc5dd88b1af1087e4 | |
parent | fbbaebfa97ddcaebfd12027b01877d6393aa0008 (diff) | |
download | Qt-56b93b836f70e121540e8d8da9447f5dc6e1fdd6.zip Qt-56b93b836f70e121540e8d8da9447f5dc6e1fdd6.tar.gz Qt-56b93b836f70e121540e8d8da9447f5dc6e1fdd6.tar.bz2 |
QTransform::shear cut-off.
Do nothing if both sh and sv is 0.
Reviewed-by: Samuel
-rw-r--r-- | src/gui/painting/qtransform.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gui/painting/qtransform.cpp b/src/gui/painting/qtransform.cpp index 16d60f8..4bc20f6 100644 --- a/src/gui/painting/qtransform.cpp +++ b/src/gui/painting/qtransform.cpp @@ -503,6 +503,9 @@ QTransform QTransform::fromScale(qreal sx, qreal sy) */ QTransform & QTransform::shear(qreal sh, qreal sv) { + if (sh == 0 && sv == 0) + return *this; + switch(inline_type()) { case TxNone: case TxTranslate: |