Removed chart paint below bottom line in chart widget.

This commit is contained in:
23rd 2023-07-11 02:36:51 +03:00 committed by John Preston
parent f76f69b5cd
commit d8566f770f
1 changed files with 8 additions and 1 deletions

View File

@ -664,7 +664,14 @@ void ChartWidget::setupChartArea() {
for (auto &horizontalLine : _horizontalLines) {
PaintCaptionsToHorizontalLines(p, horizontalLine, chartRect);
}
{
const auto bottom = r
- QMargins{ 0, rect::bottom(chartRect), 0, 0 };
p.fillRect(bottom, st::boxBg);
p.fillRect(
QRect(bottom.x(), bottom.y(), bottom.width(), st::lineWidth),
st::boxTextFg);
}
{
auto o = ScopedPainterOpacity(p, detailsAlpha);
for (const auto &dot : detailsPaintContext.dots) {