]>
Commit | Line | Data |
---|---|---|
edb488de AM |
1 | From 6c3b032693acf86a894a8ea3a30c937a1d08ed7f Mon Sep 17 00:00:00 2001 |
2 | From: aavit <eirik.aavitsland@digia.com> | |
3 | Date: Tue, 12 Aug 2014 13:54:17 +0200 | |
4 | Subject: [PATCH 65/74] Fix QPainter::drawPolyline() painting errors with | |
5 | cosmetic pen | |
6 | ||
7 | Task-number: QTBUG-31579 | |
8 | Change-Id: I8fd2c03ff9a22e4963bfcbcfe196ae4c61b9e10f | |
9 | Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com> | |
10 | (cherry picked from qtbase/319cbb7597100f3b65792dc6a0ce2885ce6c0e8c) | |
11 | Reviewed-by: Gunnar Sletta <gunnar@sletta.org> | |
12 | --- | |
13 | src/gui/painting/qcosmeticstroker.cpp | 8 ++++---- | |
14 | 1 file changed, 4 insertions(+), 4 deletions(-) | |
15 | ||
16 | diff --git a/src/gui/painting/qcosmeticstroker.cpp b/src/gui/painting/qcosmeticstroker.cpp | |
17 | index 5ca652e..1255a3b 100644 | |
18 | --- a/src/gui/painting/qcosmeticstroker.cpp | |
19 | +++ b/src/gui/painting/qcosmeticstroker.cpp | |
20 | @@ -533,8 +533,8 @@ void QCosmeticStroker::drawPath(const QVectorPath &path) | |
21 | ||
22 | QPointF p = QPointF(points[0], points[1]) * state->matrix; | |
23 | patternOffset = state->lastPen.dashOffset()*64; | |
24 | - lastPixel.x = -1; | |
25 | - lastPixel.y = -1; | |
26 | + lastPixel.x = INT_MIN; | |
27 | + lastPixel.y = INT_MIN; | |
28 | ||
29 | bool closed; | |
30 | const QPainterPath::ElementType *e = subPath(type, end, points, &closed); | |
31 | @@ -588,8 +588,8 @@ void QCosmeticStroker::drawPath(const QVectorPath &path) | |
32 | QPointF p = QPointF(points[0], points[1]) * state->matrix; | |
33 | QPointF movedTo = p; | |
34 | patternOffset = state->lastPen.dashOffset()*64; | |
35 | - lastPixel.x = -1; | |
36 | - lastPixel.y = -1; | |
37 | + lastPixel.x = INT_MIN; | |
38 | + lastPixel.y = INT_MIN; | |
39 | ||
40 | const qreal *begin = points; | |
41 | const qreal *end = points + 2*path.elementCount(); | |
42 | -- | |
43 | 1.9.3 | |
44 |