diff options
Diffstat (limited to 'src/gui/painting/qcosmeticstroker.cpp')
-rw-r--r-- | src/gui/painting/qcosmeticstroker.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/painting/qcosmeticstroker.cpp b/src/gui/painting/qcosmeticstroker.cpp index a2301e3cd8..926a1696b0 100644 --- a/src/gui/painting/qcosmeticstroker.cpp +++ b/src/gui/painting/qcosmeticstroker.cpp @@ -533,8 +533,8 @@ void QCosmeticStroker::drawPath(const QVectorPath &path) QPointF p = QPointF(points[0], points[1]) * state->matrix; patternOffset = state->lastPen.dashOffset()*64; - lastPixel.x = -1; - lastPixel.y = -1; + lastPixel.x = INT_MIN; + lastPixel.y = INT_MIN; bool closed; const QPainterPath::ElementType *e = subPath(type, end, points, &closed); @@ -588,8 +588,8 @@ void QCosmeticStroker::drawPath(const QVectorPath &path) QPointF p = QPointF(points[0], points[1]) * state->matrix; QPointF movedTo = p; patternOffset = state->lastPen.dashOffset()*64; - lastPixel.x = -1; - lastPixel.y = -1; + lastPixel.x = INT_MIN; + lastPixel.y = INT_MIN; const qreal *begin = points; const qreal *end = points + 2*path.elementCount(); |