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) {
136
136
* Checkbox settings
137
137
*/
138
138
protected void SetControls () {
139
- switch (CodeTypes .values ()[this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex ()]) {
139
+ switch (CodeTypes .values ()[Math . max ( 0 , this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex () )]) {
140
140
case defaultIno :
141
141
this .mTemplateFolderEditor .setEnabled (false , this .mParentComposite );
142
142
this .mExampleEditor .setEnabled (false );
@@ -170,7 +170,7 @@ protected void validatePage() {
170
170
if (this .mCodeSourceOptionsCombo == null ) {
171
171
return ;
172
172
}
173
- switch (CodeTypes .values ()[this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex ()]) {
173
+ switch (CodeTypes .values ()[Math . max ( 0 , this .mCodeSourceOptionsCombo .mCombo .getSelectionIndex () )]) {
174
174
case defaultIno :
175
175
case defaultCPP :
176
176
setPageComplete (true );// default always works
You can’t perform that action at this time.
0 commit comments