We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98689a commit b070099Copy full SHA for b070099
ICSharpCode.AvalonEdit/Rendering/CollapsedLineSection.cs
@@ -86,10 +86,12 @@ public void Uncollapse()
86
if (start == null)
87
return;
88
89
- heightTree.Uncollapse(this);
+ if (!heightTree.IsDisposed) {
90
+ heightTree.Uncollapse(this);
91
#if DEBUG
- heightTree.CheckProperties();
92
+ heightTree.CheckProperties();
93
#endif
94
+ }
95
96
start = null;
97
end = null;
ICSharpCode.AvalonEdit/Rendering/HeightTree.cs
@@ -73,6 +73,12 @@ public void Dispose()
73
this.weakLineTracker = null;
74
}
75
76
+ public bool IsDisposed {
77
+ get {
78
+ return root == null;
79
80
81
+
82
double defaultLineHeight;
83
84
public double DefaultLineHeight {
0 commit comments