Use guarded qFuzzyCompare idiom in CommandZone to match StackZone

This commit is contained in:
DawnFire42 2026-08-07 19:15:24 -04:00
parent 0c32e275c5
commit 7f4abbdee0
No known key found for this signature in database
GPG key ID: 24BB855EE2911B33

View file

@ -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;
} }