diff --git a/src/generic/timectrlg.cpp b/src/generic/timectrlg.cpp index f6aaa2317e..d649cd885c 100644 --- a/src/generic/timectrlg.cpp +++ b/src/generic/timectrlg.cpp @@ -480,6 +480,7 @@ private: case Field_AMPM: case Field_Max: wxFAIL_MSG( "Invalid field" ); + return; } // Check if the new value is acceptable. If not, we just handle