Browse Source

Fix #3718: Incorrect current line (#3725)

master v10.0.1
Christoph Wille 2 days ago committed by GitHub
parent
commit
aad16c66e9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.template.cs
  2. 4
      ILSpy/Metadata/MetadataTableTreeNode.wpf.cs

2
ICSharpCode.Decompiler/Properties/DecompilerVersionInfo.template.cs

@ -2,7 +2,7 @@ public static class DecompilerVersionInfo
{ {
public const string Major = "10"; public const string Major = "10";
public const string Minor = "0"; public const string Minor = "0";
public const string Build = "0"; public const string Build = "1";
public const string Revision = "$INSERTREVISION$"; public const string Revision = "$INSERTREVISION$";
public const string VersionName = null; public const string VersionName = null;

4
ILSpy/Metadata/MetadataTableTreeNode.wpf.cs

@ -16,8 +16,8 @@ namespace ICSharpCode.ILSpy.Metadata
{ {
View_Loaded(view, new System.Windows.RoutedEventArgs()); View_Loaded(view, new System.Windows.RoutedEventArgs());
} }
if (view.Items.Count > row && row >= 0) if (row > 0 && view.Items.Count >= row)
view.Dispatcher.BeginInvoke(() => view.SelectItem(view.Items[row]), DispatcherPriority.Background); view.Dispatcher.BeginInvoke(() => view.SelectItem(view.Items[row - 1]), DispatcherPriority.Background);
} }
private void View_Loaded(object sender, System.Windows.RoutedEventArgs e) private void View_Loaded(object sender, System.Windows.RoutedEventArgs e)

Loading…
Cancel
Save