]> git.pld-linux.org Git - packages/qt4.git/blame - 0065-Fix-QPainter-drawPolyline-painting-errors-with-cosme.patch
- really disable openvg
[packages/qt4.git] / 0065-Fix-QPainter-drawPolyline-painting-errors-with-cosme.patch
CommitLineData
edb488de
AM
1From 6c3b032693acf86a894a8ea3a30c937a1d08ed7f Mon Sep 17 00:00:00 2001
2From: aavit <eirik.aavitsland@digia.com>
3Date: Tue, 12 Aug 2014 13:54:17 +0200
4Subject: [PATCH 65/74] Fix QPainter::drawPolyline() painting errors with
5 cosmetic pen
6
7Task-number: QTBUG-31579
8Change-Id: I8fd2c03ff9a22e4963bfcbcfe196ae4c61b9e10f
9Reviewed-by: Gunnar Sletta <gunnar.sletta@jollamobile.com>
10(cherry picked from qtbase/319cbb7597100f3b65792dc6a0ce2885ce6c0e8c)
11Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
12---
13 src/gui/painting/qcosmeticstroker.cpp | 8 ++++----
14 1 file changed, 4 insertions(+), 4 deletions(-)
15
16diff --git a/src/gui/painting/qcosmeticstroker.cpp b/src/gui/painting/qcosmeticstroker.cpp
17index 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--
431.9.3
44
This page took 0.033256 seconds and 4 git commands to generate.