Skip to content

Commit b21a059

Browse files
committed
Correct numeric line edit for hex mode
1 parent 08f7539 commit b21a059

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

omodsim/controls/numericlineedit.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,12 @@ void NumericLineEdit::setInputMode(InputMode mode)
7878
{
7979
switch(mode)
8080
{
81-
case Int32Mode:
8281
case HexMode:
82+
_minValue = (ushort)0;
83+
_maxValue = USHRT_MAX;
84+
break;
85+
86+
case Int32Mode:
8387
_minValue = INT_MIN;
8488
_maxValue = INT_MAX;
8589
break;

0 commit comments

Comments
 (0)