Form editor: Multicontainer tab moving does not crash anymore.

[DEVELOPMENT ENVIRONMENT]
* BUG: Form editor: Multicontainer tab moving does not crash anymore.
This commit is contained in:
gambas 2021-03-02 12:22:30 +01:00 committed by Christof Thalhofer
parent f58c53121b
commit d701739955

View file

@ -3631,7 +3631,7 @@ Private Sub MoveTab(hCtrl As CControl, iWhere As Integer)
If iIndex < 0 Or If iIndex >= hTabStrip.Count Or If iIndex = hTabStrip.Index Then Return
Swap hCtrl.Tag[iIndex], hCtrl.Tag[hTabStrip.Index]
Swap hCtrl.Tabs[iIndex], hCtrl.Tabs[hTabStrip.Index]
Swap hTabStrip.Text, hTabStrip[iIndex].Text
Swap hTabStrip.Picture, hTabStrip[iIndex].Picture