aboutsummaryrefslogtreecommitdiffstatsci
path: root/src/GraphicObjects
diff options
context:
space:
mode:
authorjp <jp_bruyere@hotmail.com>2016-03-14 12:13:38 +0100
committerjp <jp_bruyere@hotmail.com>2016-03-14 12:13:38 +0100
commit6b0d7e5a317f4deb808b59f4393fb8b5d0488587 (patch)
tree3994df710d3cd935d9feb99ce9e9f02d58a15aad /src/GraphicObjects
parentd27fabf158172e8ecf18701b13d1af3ee710756d (diff)
try catch in Popper mouse leave, prevent exception when _content not sized
Diffstat (limited to 'src/GraphicObjects')
-rw-r--r--src/GraphicObjects/Popper.cs6
1 files changed, 4 insertions, 2 deletions
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