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

Commit 8cfcd69

Browse files
committed
[Debugger] Make sure colorPreview has a non-null Layer property
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1004949/ (I hope)
1 parent 0249279 commit 8cfcd69

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ public MacDebuggerObjectValueView (MacObjectValueTreeView treeView) : base (tree
6767
};
6868

6969
colorPreview = new NSView (new CGRect (0, 0, ImageSize, ImageSize)) {
70-
TranslatesAutoresizingMaskIntoConstraints = false
70+
TranslatesAutoresizingMaskIntoConstraints = false,
71+
WantsLayer = true
7172
};
7273

7374
valueButton = new NSButton {

0 commit comments

Comments
 (0)