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:
parent
44a3f5f664
commit
83c39796eb
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue