summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;