mirror of
https://github.com/ajisaacs/OpenNest.git
synced 2026-10-07 09:02:11 -04:00
The plate preview read DataGridView.CurrentRow in SelectionChanged, but that event runs before CurrentCell moves, so CurrentRow still named the previous row. Choosing a row showed the plate that had been selected before it, and the next-plate button snapped the preview back to the old plate. Read the selected row instead. The Windows job of run 37341610182 caught it: PlatePreview_StepsThroughThePlates_AndFollowsThePlatesTable expected "Plate 2 of 2" after the next-plate button and got "Plate 1 of 2". The test now also checks that the selected row follows the button.