aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickpathitemnvprrenderer.cpp
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2016-12-21 13:15:38 +0100
committerLaszlo Agocs <laszlo.agocs@qt.io>2016-12-23 20:00:28 +0000
commit79831caa0533ad5f48322568557622596b85ed0f (patch)
treee5d0c4215fcd5df67d05b6a017a2cb7221f11754 /src/quick/items/qquickpathitemnvprrenderer.cpp
parentbf7c6226264bd45095711b2c0556c42b6f267f72 (diff)
Treat 0 as a valid strokeWidth value
Use negative values as the trigger to disable stroking altogether. This matches both QPainter and NVPR better. Change-Id: I51395ae310fce8a8da0c06174eafa1dc17aae1db Reviewed-by: Andy Nichols <andy.nichols@qt.io>
Diffstat (limited to 'src/quick/items/qquickpathitemnvprrenderer.cpp')
-rw-r--r--src/quick/items/qquickpathitemnvprrenderer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/items/qquickpathitemnvprrenderer.cpp b/src/quick/items/qquickpathitemnvprrenderer.cpp
index d07a63c86d..e0c458bfca 100644
--- a/src/quick/items/qquickpathitemnvprrenderer.cpp
+++ b/src/quick/items/qquickpathitemnvprrenderer.cpp
@@ -529,7 +529,7 @@ void QQuickPathItemNvprRenderNode::render(const RenderState *state)
nvpr.stencilThenCoverFillPath(m_path, m_fillRule, 0xFF, GL_BOUNDING_BOX_NV);
}
- if (!qFuzzyIsNull(m_strokeWidth) && !qFuzzyIsNull(m_strokeColor.w())) {
+ if (m_strokeWidth >= 0.0f && !qFuzzyIsNull(m_strokeColor.w())) {
if (m_fillGradientActive)
mtl = mtlmgr.activateMaterial(QQuickNvprMaterialManager::MatSolid);
f->glProgramUniform4f(mtl->prg, mtl->uniLoc[0],