Prevent elevation buttons from normalizing to a very large size

This commit is contained in:
Dan Paulat 2023-06-23 00:08:17 -05:00
parent 97a1d26370
commit a87453ed2e

View file

@ -111,7 +111,8 @@ void Level2SettingsWidgetImpl::NormalizeElevationButtons()
}
});
if (elevationCutMaxWidth > 0)
// Don't resize the buttons if the size is out of expected ranges
if (0 < elevationCutMaxWidth && elevationCutMaxWidth < 100)
{
std::for_each(elevationButtons_.cbegin(),
elevationButtons_.cend(),