summaryrefslogtreecommitdiffstats
path: root/src/gui/painting/qtransform.cpp
diff options
context:
space:
mode:
authorBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-12 14:46:16 (GMT)
committerBjørn Erik Nilsen <bjorn.nilsen@nokia.com>2009-06-12 14:54:18 (GMT)
commit56b93b836f70e121540e8d8da9447f5dc6e1fdd6 (patch)
tree8354b39dc369b5958d57633cc5dd88b1af1087e4 /src/gui/painting/qtransform.cpp
parentfbbaebfa97ddcaebfd12027b01877d6393aa0008 (diff)
downloadQt-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
Diffstat (limited to 'src/gui/painting/qtransform.cpp')
-rw-r--r--src/gui/painting/qtransform.cpp3
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: