X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/415a0ff16d5d50015e3d43c1c6f32f48f995cbab..222702b112dcc7bebe018d6f4d66fe469fefd02c:/src/univ/checkbox.cpp diff --git a/src/univ/checkbox.cpp b/src/univ/checkbox.cpp index fa84b05a95..48d4fd2b6c 100644 --- a/src/univ/checkbox.cpp +++ b/src/univ/checkbox.cpp @@ -141,8 +141,9 @@ void wxCheckBox::DoDraw(wxControlRenderer *renderer) switch ( Get3StateValue() ) { - case wxCHK_CHECKED: flags |= wxCONTROL_CHECKED; - case wxCHK_UNDETERMINED: flags |= wxCONTROL_UNDETERMINED; + case wxCHK_CHECKED: flags |= wxCONTROL_CHECKED; break; + case wxCHK_UNDETERMINED: flags |= wxCONTROL_UNDETERMINED; break; + default: /* do nothing */ break; } wxBitmap bitmap(GetBitmap(GetState(flags), m_status)); @@ -224,6 +225,7 @@ wxCheckBoxState wxCheckBox::DoGet3StateValue() const { case Status_Checked: return wxCHK_CHECKED; case Status_Unchecked: return wxCHK_UNCHECKED; + default: /* go further */ break; } return wxCHK_UNDETERMINED; }