Mercurial > pub > ImplabNet
diff Implab.Diagnostics.Interactive/TraceForm.cs @ 204:cbb0bd8fc0d1 v2
Fixed broken Implab.Diagnostics.Interactive
author | cin |
---|---|
date | Mon, 24 Oct 2016 11:24:45 +0300 |
parents | d9d794b61bb9 |
children |
line wrap: on
line diff
--- a/Implab.Diagnostics.Interactive/TraceForm.cs Tue Oct 18 17:49:54 2016 +0300 +++ b/Implab.Diagnostics.Interactive/TraceForm.cs Mon Oct 24 11:24:45 2016 +0300 @@ -31,7 +31,8 @@ public void AddTraceEvent(TraceViewItem item) { traceViewItemBindingSource.Add(item); - eventsDataGrid.FirstDisplayedScrollingRowIndex = eventsDataGrid.RowCount - 1; + if(eventsDataGrid.RowCount > 0) + eventsDataGrid.FirstDisplayedScrollingRowIndex = eventsDataGrid.RowCount - 1; } Color GetThreadColor(int thread) {