Toolbar: Drag & drop should not crash anymore because of the previous change in the Parent property.

[GB.FORM.MDI]
* BUG: Toolbar: Drag & drop should not crash anymore because of the previous change in the Parent property.
This commit is contained in:
gambas 2018-11-20 12:14:18 +01:00
parent 44a3f5f664
commit 83c39796eb

View file

@ -899,8 +899,8 @@ Public Sub Form_DragMove()
Return
Endif
While hCtrl.Parent <> panToolBar
hCtrl = hCtrl.Parent
While hCtrl._Parent <> panToolBar
hCtrl = hCtrl._Parent
Wend
If hCtrl = panWhere Then Return
@ -966,8 +966,8 @@ Private Sub OnMouseDrag(hCtrl As Control)
Dim sAction As String
While hCtrl.Parent <> panToolBar
hCtrl = hCtrl.Parent
While hCtrl._Parent <> panToolBar
hCtrl = hCtrl._Parent
'Debug "-> "; hCtrl
Wend