diff options
author | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-01-21 12:37:46 (GMT) |
---|---|---|
committer | Jani Hautakangas <jani.hautakangas@nokia.com> | 2011-01-21 12:53:28 (GMT) |
commit | 5bd4db40eb545c0e5ff121876630ae8b952e957d (patch) | |
tree | 8406033ad82f43d30a3cab7320de75b76108f955 /src | |
parent | 81cc6d57907eb080e255a6e3d33a88f27aa70437 (diff) | |
download | Qt-5bd4db40eb545c0e5ff121876630ae8b952e957d.zip Qt-5bd4db40eb545c0e5ff121876630ae8b952e957d.tar.gz Qt-5bd4db40eb545c0e5ff121876630ae8b952e957d.tar.bz2 |
Fix to pen state handling in OpenVG paint engine.
Shape should not be filled using pen if pen brush
type is NoBrush. OpenVG paint engine didn't check
NoBrush case when applying pen.
Task-number: QTBUG-15870
Reviewed-by: Gunnar
Diffstat (limited to 'src')
-rw-r--r-- | src/openvg/qpaintengine_vg.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/openvg/qpaintengine_vg.cpp b/src/openvg/qpaintengine_vg.cpp index b90811d..a15f0c3 100644 --- a/src/openvg/qpaintengine_vg.cpp +++ b/src/openvg/qpaintengine_vg.cpp @@ -1472,7 +1472,7 @@ void QVGPaintEnginePrivate::draw (VGPath path, const QPen& pen, const QBrush& brush, VGint rule) { VGbitfield mode = 0; - if (pen.style() != Qt::NoPen) { + if (qpen_style(pen) != Qt::NoPen && qbrush_style(qpen_brush(pen)) != Qt::NoBrush) { ensurePen(pen); mode |= VG_STROKE_PATH; } |