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

Commit 51856a5

Browse files
authored
Merge pull request #9082 from mono/jstedfast-debugger-setbackgroundstyle-nre-fix
[Debugger] When the BackgroundStyle is set, only UpdateContents() if …
2 parents b715e44 + 5244fac commit 51856a5

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)