summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2011-10-05 12:04:34 +0200
committerQt by Nokia <qt-info@nokia.com>2011-10-06 09:36:39 +0200
commit8f114af67bc0552371bb9c5464eb448060f99446 (patch)
tree45334e3b48a59f7af9f065f8ee9abb0f0f35b9bc /src/gui
parent7d2cfbe5aa1e67d12010a66481625c9d40f0c174 (diff)
Fix typo in qbezier shift implementation
Multiplying by zero was not the intention. Task-number: QTBUG-20482 Change-Id: I3c4dfd69da4d98ed65f318d1fa0c3cf827017688 Reviewed-on: http://codereview.qt-project.org/6048 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@nokia.com>
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/painting/qbezier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/painting/qbezier.cpp b/src/gui/painting/qbezier.cpp
index 05c1f6e771..9d204f9a39 100644
--- a/src/gui/painting/qbezier.cpp
+++ b/src/gui/painting/qbezier.cpp
@@ -319,7 +319,7 @@ static ShiftResult shift(const QBezier *orig, QBezier *shifted, qreal offset, qr
QRectF b = orig->bounds();
if (np == 4 && b.width() < .1*offset && b.height() < .1*offset) {
qreal l = (orig->x1 - orig->x2)*(orig->x1 - orig->x2) +
- (orig->y1 - orig->y2)*(orig->y1 - orig->y1) *
+ (orig->y1 - orig->y2)*(orig->y1 - orig->y2) *
(orig->x3 - orig->x4)*(orig->x3 - orig->x4) +
(orig->y3 - orig->y4)*(orig->y3 - orig->y4);
qreal dot = (orig->x1 - orig->x2)*(orig->x3 - orig->x4) +