void OnTextClick(wxMouseEvent& event)
{
- Field field wxDUMMY_INITIALIZE(Field_Max);
+ Field field = Field_Max; // Initialize just to suppress warnings.
long pos;
switch ( m_text->HitTest(event.GetPosition(), &pos) )
{
case Field_AMPM:
case Field_Max:
wxFAIL_MSG( "Invalid field" );
+ return;
}
// Check if the new value is acceptable. If not, we just handle