A pen/brush can be invalid and have a valid color 4.6
authorAnders Bakken <anders.bakken@nokia.com>
Fri, 18 Sep 2009 16:06:36 +0000 (09:06 -0700)
committerAnders Bakken <anders.bakken@nokia.com>
Fri, 18 Sep 2009 16:27:58 +0000 (09:27 -0700)
commitfece4080b02a8edfd743919bb694bd8e9c1e1271
tree0157f7026de2f71f84c5e6d6250c69997d19423e
parent87a8e182cbecde15fbf0af439b77a0ec7146274e
A pen/brush can be invalid and have a valid color

This code is wrong:

if (brush != Qt::NoBrush)
    ...

It should be:
if (brush.style() != Qt::NoBrush)
    ...

Reviewed-by: Jervey Kong <jervey.kong@nokia.com>
src/plugins/gfxdrivers/directfb/qdirectfbpaintengine.cpp