Fix crash in stats with Qt 6 on Windows.

This commit is contained in:
John Preston
2026-01-03 22:06:30 +04:00
parent 350a5dd7bc
commit a05d7aaf91
@@ -765,13 +765,13 @@ void InnerWidget::fill() {
creditsSecondLabel->resizeToWidth(
available - creditsSecondLabel->pos().x());
if (!showCredits) {
const auto x = std::numeric_limits<int>::max();
const auto x = std::numeric_limits<int>::max() / 2;
icon->moveToLeft(x, 0);
creditsLabel->moveToLeft(x, 0);
creditsSecondLabel->moveToLeft(x, 0);
}
if (!showCurrency) {
const auto x = std::numeric_limits<int>::max();
const auto x = std::numeric_limits<int>::max() / 2;
majorLabel->moveToLeft(x, 0);
minorLabel->moveToLeft(x, 0);
secondMinorLabel->moveToLeft(x, 0);