diff options
Diffstat (limited to 'stats/pieseries.cpp')
-rw-r--r-- | stats/pieseries.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/stats/pieseries.cpp b/stats/pieseries.cpp index 50c76a8ed..8db3bdbe3 100644 --- a/stats/pieseries.cpp +++ b/stats/pieseries.cpp @@ -65,11 +65,11 @@ void PieSeries::Item::updatePositions(const QPointF ¢er, double radius) void PieSeries::Item::highlight(ChartPieItem &item, int bin_nr, bool highlight, int numBins) { + QColor fill = highlight ? highlightedColor : binColor(bin_nr, numBins); + QColor border = highlight ? highlightedBorderColor : ::borderColor; if (innerLabel) - innerLabel->setColor(highlight ? darkLabelColor : labelColor(bin_nr, numBins)); - item.drawSegment(angleFrom, angleTo, - highlight ? highlightedColor : binColor(bin_nr, numBins), - highlight ? highlightedBorderColor : ::borderColor); + innerLabel->setColor(highlight ? darkLabelColor : labelColor(bin_nr, numBins), fill); + item.drawSegment(angleFrom, angleTo, fill, border); } PieSeries::PieSeries(StatsView &view, StatsAxis *xAxis, StatsAxis *yAxis, const QString &categoryName, |