mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-28 00:42:19 -07:00
Use guarded qFuzzyCompare idiom in CommandZone to match StackZone
This commit is contained in:
parent
0c32e275c5
commit
7f4abbdee0
1 changed files with 1 additions and 1 deletions
|
|
@ -55,7 +55,7 @@ void CommandZone::setMinimumHeight(int height)
|
||||||
// height is unchanged (e.g. a tax counter toggled while expanded).
|
// height is unchanged (e.g. a tax counter toggled while expanded).
|
||||||
const qreal oldEffectiveHeight = currentHeight();
|
const qreal oldEffectiveHeight = currentHeight();
|
||||||
minimumHeight = height;
|
minimumHeight = height;
|
||||||
if (qFuzzyCompare(currentHeight(), oldEffectiveHeight)) {
|
if (qFuzzyCompare(1.0 + currentHeight(), 1.0 + oldEffectiveHeight)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue