diff --git a/src/piechart/qpieslice.cpp b/src/piechart/qpieslice.cpp index e51fd85..08753d2 100644 --- a/src/piechart/qpieslice.cpp +++ b/src/piechart/qpieslice.cpp @@ -584,10 +584,11 @@ QColor QPieSlice::color() void QPieSlice::setColor(QColor color) { QBrush b = brush(); - if (color != b.color()) { - b.setColor(color); - setBrush(b); - } + + if (b == QBrush()) + b.setStyle(Qt::SolidPattern); + b.setColor(color); + setBrush(b); } void QPieSlice::setLabelBrush(const QBrush &brush)