summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2016-06-14 18:45:13 +0000
committerIan C <ianc@noddybox.co.uk>2016-06-14 18:45:13 +0000
commit6bcdf300ee3c651f32b0c78df0b2d3cf6f0263e1 (patch)
tree76368698cf19cd078c163e1847cb81c62147a942
parent4e3b8b0981d4699b5571fed9d26107fde11c1025 (diff)
Added some defensive coding for mouse events in the edit control.HEADmaster
-rw-r--r--neschr/EditControl.cs15
1 files changed, 15 insertions, 0 deletions
diff --git a/neschr/EditControl.cs b/neschr/EditControl.cs
index 566ac46..067d320 100644
--- a/neschr/EditControl.cs
+++ b/neschr/EditControl.cs
@@ -403,6 +403,11 @@ namespace UCTest
protected override void OnMouseMove(MouseEventArgs e)
{
+ if (!initialised)
+ {
+ return;
+ }
+
int gx;
int gy;
@@ -536,6 +541,11 @@ namespace UCTest
protected override void OnMouseDown(MouseEventArgs e)
{
+ if (!initialised)
+ {
+ return;
+ }
+
int gx;
int gy;
@@ -576,6 +586,11 @@ namespace UCTest
protected override void OnMouseUp(MouseEventArgs e)
{
+ if (!initialised)
+ {
+ return;
+ }
+
int gx;
int gy;