]> O.S.I.I.S - jp/crow.git/commitdiff
try catch in Popper mouse leave, prevent exception when _content not sized
authorjp <jp_bruyere@hotmail.com>
Mon, 14 Mar 2016 11:13:38 +0000 (12:13 +0100)
committerjp <jp_bruyere@hotmail.com>
Mon, 14 Mar 2016 11:13:38 +0000 (12:13 +0100)
src/GraphicObjects/Popper.cs

index 746e334bb38ca562ac8cadc682a276e060ab083f..69da1029a1ccc0eb5c58236697dbc201e084d9b3 100644 (file)
@@ -118,8 +118,10 @@ namespace Crow
                                return;
                        if (_content == null)
                                return;
-                       if (_content.MouseIsIn (e.Position))
-                               return;
+                       try {
+                               if (_content.MouseIsIn (e.Position))
+                                       return;
+                       } catch (Exception ex) {}
                        IsPopped = false;
                }
                #endregion