From 56b93b836f70e121540e8d8da9447f5dc6e1fdd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Nilsen?= Date: Fri, 12 Jun 2009 16:46:16 +0200 Subject: QTransform::shear cut-off. Do nothing if both sh and sv is 0. Reviewed-by: Samuel --- src/gui/painting/qtransform.cpp | 3 +++ 1 file changed, 3 insertions(+) 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: -- cgit v0.12