diff options
author | Jeffrey Stedfast <jestedfa@microsoft.com> | 2019-10-28 19:26:56 +0300 |
---|---|---|
committer | Jeffrey Stedfast <jestedfa@microsoft.com> | 2019-10-28 19:26:56 +0300 |
commit | 9a3b2d39add7d0ec0a5ab8d264439160a59fb27a (patch) | |
tree | 299afff8e154efb4265b3e9409f3eba71afb018b /main | |
parent | 1d1d6568f4e556e98d46b7abebc42dff6ad19301 (diff) |
[Debugger] Don't dereference statusIcon.Image for its size, just use ImageSize
Fixes https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1004949/
Diffstat (limited to 'main')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectValueView.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectValueView.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectValueView.cs index d5e86cf059..db5ca167c8 100644 --- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectValueView.cs +++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger/ObjectValue/Mac/MacDebuggerObjectValueView.cs @@ -194,7 +194,7 @@ namespace MonoDevelop.Debugger constraints.Add (statusIcon.HeightAnchor.ConstraintEqualToConstant (ImageSize)); views.Add (statusIcon); - OptimalWidth += statusIcon.Image.Size.Width; + OptimalWidth += ImageSize; OptimalWidth += RowCellSpacing; } else if (statusIconVisible) { statusIcon.RemoveFromSuperview (); |