Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/monodevelop.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorJeffrey Stedfast <jestedfa@microsoft.com>2019-10-28 19:26:56 +0300
committerJeffrey Stedfast <jestedfa@microsoft.com>2019-10-28 19:26:56 +0300
commit9a3b2d39add7d0ec0a5ab8d264439160a59fb27a (patch)
tree299afff8e154efb4265b3e9409f3eba71afb018b /main
parent1d1d6568f4e556e98d46b7abebc42dff6ad19301 (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.cs2
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 ();