Removed display of selected index with incorrect value on bar chart.

This commit is contained in:
23rd 2023-11-23 00:08:28 +03:00 committed by John Preston
parent 856f39c123
commit dc04a1afdb
1 changed files with 5 additions and 3 deletions

View File

@ -143,10 +143,12 @@ void BarChartView::paintSelectedXIndex(
_lastSelectedXIndex = selectedXIndex;
_lastSelectedXProgress = progress;
if ((_lastSelectedXIndex < 0) && (was < 0)) {
return;
}
if (_isStack) {
if ((_lastSelectedXIndex >= 0) || (was >= 0)) {
BarChartView::paintChartAndSelected(p, c);
}
BarChartView::paintChartAndSelected(p, c);
} else {
const auto linesFilter = linesFilterController();
auto hq = PainterHighQualityEnabler(p);