File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,12 @@ public void validateanddisplaydata()
229229 {
230230 if ( od . subobjects . Count >= 2 )
231231 {
232- comboBox_datatype . SelectedItem = od . subobjects [ 1 ] . datatype . ToString ( ) ;
232+ // BUG #70 Select the first non subindex count entry, note this may not be key[1] so we are using an ordinal hack
233+ // to retrieve it.
234+ // Whilst this will likely work forever, there is nothing stopping the implementation from being
235+ // changed in the future and causing your code which uses this to break in horrible ways. You have been warned
236+
237+ comboBox_datatype . SelectedItem = od . subobjects . ElementAt ( 1 ) . Value . datatype . ToString ( ) ;
233238 }
234239
235240 }
Original file line number Diff line number Diff line change @@ -1072,7 +1072,8 @@ public void parseline(string linex)
10721072
10731073 //extract keyvalues
10741074 {
1075- string pat = @"^([a-z0-9_]+)=(.*)" ;
1075+ //Bug #70 Eat whitespace!
1076+ string pat = @"^([a-z0-9_]+)[ ]*=[ ]*(.*)" ;
10761077
10771078 Regex r = new Regex ( pat , RegexOptions . IgnoreCase ) ;
10781079 Match m = r . Match ( line ) ;
You can’t perform that action at this time.
0 commit comments