diff --git a/WarPlanes/WarPlanes/FormWarPlaneConfig.cs b/WarPlanes/WarPlanes/FormWarPlaneConfig.cs index 203fe6d..a1b255d 100644 --- a/WarPlanes/WarPlanes/FormWarPlaneConfig.cs +++ b/WarPlanes/WarPlanes/FormWarPlaneConfig.cs @@ -116,7 +116,7 @@ /// private void LabelBaseColor_DragEnter(object sender, DragEventArgs e) { - if (e.Data.GetDataPresent(typeof(Color))) + if (e.Data.GetDataPresent(typeof(Color)) && _warplane != null) { e.Effect = DragDropEffects.Copy; } @@ -164,7 +164,7 @@ private void labelDopColor_DragEnter(object sender, DragEventArgs e) { - if (e.Data.GetDataPresent(typeof(Color))) + if (_warplane != null && _warplane is DrawningFighter && e.Data.GetDataPresent(typeof(Color))) { e.Effect = DragDropEffects.Copy; }