1
0
mirror of https://github.com/fadden/6502bench.git synced 2024-11-29 10:50:28 +00:00

Minor regression test fix

This commit is contained in:
Andy McFadden 2022-07-31 09:41:37 -07:00
parent c1a8ce519e
commit 5d7503686c

View File

@ -31,6 +31,7 @@ namespace SourceGen.Tests.WpfGui {
/// Source generation test runner.
/// </summary>
public partial class GenTestRunner : Window, INotifyPropertyChanged {
// Full set of results from last run.
private List<GenTest.GenTestResults> mLastResults;
private BackgroundWorker mWorker;
@ -208,7 +209,7 @@ namespace SourceGen.Tests.WpfGui {
outputTextBox.Text = string.Empty;
return;
}
if (mLastResults == null && mLastResults.Count <= sel) {
if (mLastResults == null || mLastResults.Count <= sel) {
Debug.WriteLine("SelIndexChanged to " + sel + ", not available");
return;
}