diff options
Diffstat (limited to 'src')
-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: |