File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
io.sloeber.ui/src/io/sloeber/ui/wizard/newsketch Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ public void handleEvent(Event event) {
136136 * Checkbox settings
137137 */
138138 protected void SetControls () {
139- switch (CodeTypes .values ()[this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex ()]) {
139+ switch (CodeTypes .values ()[Math . max ( 0 , this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex () )]) {
140140 case defaultIno :
141141 this .mTemplateFolderEditor .setEnabled (false , this .mParentComposite );
142142 this .mExampleEditor .setEnabled (false );
@@ -170,7 +170,7 @@ protected void validatePage() {
170170 if (this .mCodeSourceOptionsCombo == null ) {
171171 return ;
172172 }
173- switch (CodeTypes .values ()[this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex ()]) {
173+ switch (CodeTypes .values ()[Math . max ( 0 , this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex () )]) {
174174 case defaultIno :
175175 case defaultCPP :
176176 setPageComplete (true );// default always works
You can’t perform that action at this time.
0 commit comments