Minor regression test fix

This commit is contained in:
Andy McFadden 2022-07-31 09:41:37 -07:00
parent c1a8ce519e
commit 5d7503686c
1 changed files with 2 additions and 1 deletions

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;
}