C2021-004 logic to support table cell shading

null reference check
This commit is contained in:
2021-11-18 19:32:25 +00:00
parent 884eda31e2
commit 2f07372641
3 changed files with 116 additions and 26 deletions

View File

@@ -3656,6 +3656,7 @@ namespace Volian.Controls.Library
try
{
TreeNode dragNode = GetTreeNodeFromData(e.Data);
if (dragNode == null) return;
// Compute drag position and move image
Point formP = this.FindForm().PointToClient(new Point(e.X, e.Y));
DragHelper.ImageList_DragMove(formP.X - this.Left, formP.Y - this.Top);