mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2025-12-16 01:30:07 +01:00
Merge pull request #321 from Nutznieser/patch-1
Fix wx._core.wxAssertionError at dragging a agw.aui tab
This commit is contained in:
@@ -2019,15 +2019,15 @@ class AuiTabCtrl(wx.Control, AuiTabContainer):
|
||||
|
||||
if self._is_dragging:
|
||||
|
||||
if self.HasCapture():
|
||||
self.ReleaseMouse()
|
||||
|
||||
self._is_dragging = False
|
||||
if self._drag_image:
|
||||
self._drag_image.EndDrag()
|
||||
del self._drag_image
|
||||
self._drag_image = None
|
||||
self.GetParent().Refresh()
|
||||
|
||||
if self.HasCapture():
|
||||
self.ReleaseMouse()
|
||||
|
||||
evt = AuiNotebookEvent(wxEVT_COMMAND_AUINOTEBOOK_END_DRAG, self.GetId())
|
||||
evt.SetSelection(self.GetIdxFromWindow(self._click_tab))
|
||||
|
||||
Reference in New Issue
Block a user