Skip to content

Commit da6863f

Browse files
Fix #3718: Incorrect current line
1 parent 422ccd3 commit da6863f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.template.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ public static class DecompilerVersionInfo
22
{
33
public const string Major = "10";
44
public const string Minor = "0";
5-
public const string Build = "0";
5+
public const string Build = "1";
66
public const string Revision = "$INSERTREVISION$";
77
public const string VersionName = null;
88

ILSpy/Metadata/MetadataTableTreeNode.wpf.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ protected void ScrollRowIntoView(DataGrid view, int row)
1616
{
1717
View_Loaded(view, new System.Windows.RoutedEventArgs());
1818
}
19-
if (view.Items.Count > row && row >= 0)
20-
view.Dispatcher.BeginInvoke(() => view.SelectItem(view.Items[row]), DispatcherPriority.Background);
19+
if (row > 0 && view.Items.Count >= row)
20+
view.Dispatcher.BeginInvoke(() => view.SelectItem(view.Items[row - 1]), DispatcherPriority.Background);
2121
}
2222

2323
private void View_Loaded(object sender, System.Windows.RoutedEventArgs e)

0 commit comments

Comments
 (0)