добавление проверки в драгдроп для панели
This commit is contained in:
parent
a77bd466ee
commit
1b8ab2bb3b
@ -106,7 +106,7 @@
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (_locomotive != null)
|
||||
else if (_locomotive != null && e.Data.GetDataPresent(typeof(IDrawningAdditionalElements)))
|
||||
{
|
||||
var ornament = e.Data.GetData(typeof(IDrawningAdditionalElements));
|
||||
_locomotive.AdditionalElements = (IDrawningAdditionalElements)ornament;
|
||||
|
Loading…
Reference in New Issue
Block a user