Skip to content

Commit 9f0d98a

Browse files
committed
charts: Fix warning
1 parent fb7785c commit 9f0d98a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libs/charts/iAChartWidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ void iAChartWidget::drawLegend(QPainter& painter)
455455
const int TextLeft = LegendColorLeft + LegendItemWidth + LegendPadding;
456456
for (size_t pi = 0; pi < m_plots.size(); ++pi)
457457
{
458-
int top = upLeft.y() + LegendPadding + pi * LineHeight;
458+
int top = upLeft.y() + LegendPadding + static_cast<int>(pi) * LineHeight;
459459
QRect legendItemRect(LegendColorLeft, top + LegendItemSpacing, LegendItemWidth, LineHeight - LegendItemSpacing);
460460
m_plots[pi]->drawLegendItem(painter, legendItemRect);
461461
auto textColor = qApp->palette().color(QPalette::Text);

0 commit comments

Comments
 (0)