avoid using invalid field

This commit is contained in:
Marc-Philip 2017-06-19 13:41:50 +02:00
parent dd3c62660b
commit 25ce17ca7b

View File

@ -446,6 +446,7 @@ private:
case Field_Max:
wxFAIL_MSG( "Invalid field" );
return;
}
UpdateText();
@ -531,6 +532,7 @@ private:
case Field_AMPM:
case Field_Max:
wxFAIL_MSG( "Invalid field" );
return;
}
if ( moveToNextField && m_currentField < Field_Sec )