Skip to content
This repository was archived by the owner on Oct 4, 2021. It is now read-only.

Commit 5244fac

Browse files
committed
[Debugger] When the BackgroundStyle is set, only UpdateContents() if Superview is non-null
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1005195/
1 parent d5d6313 commit 5244fac

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectCellViewBase.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,9 @@ public override NSBackgroundStyle BackgroundStyle {
179179
get { return base.BackgroundStyle; }
180180
set {
181181
base.BackgroundStyle = value;
182-
UpdateContents ();
182+
183+
if (Superview != null)
184+
UpdateContents ();
183185
}
184186
}
185187

0 commit comments

Comments
 (0)