From 8f114af67bc0552371bb9c5464eb448060f99446 Mon Sep 17 00:00:00 2001 From: Kent Hansen Date: Wed, 5 Oct 2011 12:04:34 +0200 Subject: 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 Reviewed-by: Gunnar Sletta --- src/gui/painting/qbezier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/painting/qbezier.cpp') 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) + -- cgit v1.2.3