mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-07-17 07:52:16 -07:00
Slightly more sensible layout handling.
This commit is contained in:
parent
f52903a94d
commit
6426f3c86c
1 changed files with 0 additions and 6 deletions
|
|
@ -70,12 +70,6 @@ void ManaCurveWidget::updateDisplay()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Ensure layout exists
|
|
||||||
if (barLayout == nullptr) {
|
|
||||||
barLayout = new QHBoxLayout(this);
|
|
||||||
layout->addLayout(barLayout);
|
|
||||||
}
|
|
||||||
|
|
||||||
int totalSum = 0;
|
int totalSum = 0;
|
||||||
for (const auto &entry : manaCurveMap) {
|
for (const auto &entry : manaCurveMap) {
|
||||||
totalSum += entry.second;
|
totalSum += entry.second;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue