diff options
author | David Karlaš <david.karlas@xamarin.com> | 2014-07-24 14:26:04 +0400 |
---|---|---|
committer | David Karlaš <david.karlas@xamarin.com> | 2014-07-24 14:26:04 +0400 |
commit | 5387e8b924b133de586c3ccf754a720a77f84ffb (patch) | |
tree | 5b759cdf7267a0fb68222350705fd36df93da8f5 /main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers | |
parent | 997fc8115e1616b51d128e34a29a9e87e43d271e (diff) |
[Debugger] CLLocation/CLLocationCoordinate2D converter
Diffstat (limited to 'main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers')
-rw-r--r-- | main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/LocationPreviewVisualizer.cs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/LocationPreviewVisualizer.cs b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/LocationPreviewVisualizer.cs index e31e0457b3..72656ea10f 100644 --- a/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/LocationPreviewVisualizer.cs +++ b/main/src/addins/MonoDevelop.Debugger/MonoDevelop.Debugger.PreviewVisualizers/LocationPreviewVisualizer.cs @@ -63,7 +63,9 @@ namespace MonoDevelop.Debugger.PreviewVisualizers null, cancelSource.Token).ContinueWith ((System.Threading.Tasks.Task<HttpWebResponse> arg) => { Application.Invoke (delegate { - mainBox.Remove (mainBox.Children [0]); + if (mainBox.Children.Length > 0) { + mainBox.Remove (mainBox.Children [0]); + } if (arg.Exception == null) { var imageView = new ImageView (Xwt.Drawing.Image.FromStream (arg.Result.GetResponseStream ())); imageView.Show (); |