mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 16:49:54 +00:00
Fix NumericEditBox behavior broken by switch to std::stoi
For some reason stoi doesn't throw an error for '1foo' while 'foo1' does. Now the edit box flat out rejects any non-digit key events.
This commit is contained in:
parent
719255c5c6
commit
9fda3b6db4
1 changed files with 1 additions and 1 deletions
|
@ -87,7 +87,7 @@ namespace Gui
|
|||
setValue(std::max(mValue-1, mMinValue));
|
||||
eventValueChanged(mValue);
|
||||
}
|
||||
else
|
||||
else if (character == 0 || (character >= '0' && character <= '9'))
|
||||
Base::onKeyButtonPressed(key, character);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue