diff --git a/eeschema/edit_label.cpp b/eeschema/edit_label.cpp index 8fca11b0e7..b6da029b3f 100644 --- a/eeschema/edit_label.cpp +++ b/eeschema/edit_label.cpp @@ -186,6 +186,10 @@ void SCH_EDIT_FRAME::OnConvertTextType( wxCommandEvent& aEvent ) case SCH_TEXT_T: newtext = new SCH_TEXT( position, txt ); break; + + default: + wxASSERT_MSG( false, wxString::Format( "Invalid text type: %d.", type ) ); + return; } /* Copy the old text item settings to the new one. Justifications are not copied because