From: jp Date: Mon, 14 Mar 2016 11:13:38 +0000 (+0100) Subject: try catch in Popper mouse leave, prevent exception when _content not sized X-Git-Tag: v0.4~76 X-Git-Url: https://git.osiis.dedyn.io/?a=commitdiff_plain;h=6b0d7e5a317f4deb808b59f4393fb8b5d0488587;p=jp%2Fcrow.git try catch in Popper mouse leave, prevent exception when _content not sized --- diff --git a/src/GraphicObjects/Popper.cs b/src/GraphicObjects/Popper.cs index 746e334b..69da1029 100644 --- a/src/GraphicObjects/Popper.cs +++ b/src/GraphicObjects/Popper.cs @@ -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