avoid using invalid field
This commit is contained in:
parent
dd3c62660b
commit
25ce17ca7b
@ -446,6 +446,7 @@ private:
|
|||||||
|
|
||||||
case Field_Max:
|
case Field_Max:
|
||||||
wxFAIL_MSG( "Invalid field" );
|
wxFAIL_MSG( "Invalid field" );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
UpdateText();
|
UpdateText();
|
||||||
@ -531,6 +532,7 @@ private:
|
|||||||
case Field_AMPM:
|
case Field_AMPM:
|
||||||
case Field_Max:
|
case Field_Max:
|
||||||
wxFAIL_MSG( "Invalid field" );
|
wxFAIL_MSG( "Invalid field" );
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( moveToNextField && m_currentField < Field_Sec )
|
if ( moveToNextField && m_currentField < Field_Sec )
|
||||||
|
Loading…
Reference in New Issue
Block a user