The Wayback Machine - https://web.archive.org/web/20201014034940/https://github.com/wxWidgets/Phoenix/pull/321
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wx._core.wxAssertionError at dragging a agw.aui tab #321

Merged
merged 1 commit into from Apr 25, 2017

Conversation

@FreeHarry
Copy link
Contributor

@FreeHarry FreeHarry commented Apr 23, 2017

Fix the problem from issue #93. It seems that any attempt to call self.ReleaseMouse(), despite of a self.HasCapture() query, leads to an error if wx.DragImage.BeginDrag() is active. So, I moved this block below the wx.DragImage.EndDrag() and it solves the problem.

I'm not sure whether this code block is necessary at all, because the documentation writes:

This function automatically releases mouse capture.

see issue #93
@FreeHarry FreeHarry changed the title Fix wx._core.wxAssertionError at dragging a tab Fix wx._core.wxAssertionError at dragging a agw.aui tab Apr 24, 2017
@RobinD42 RobinD42 merged commit 9c9b66f into wxWidgets:master Apr 25, 2017
1 check passed
1 check passed
continuous-integration/travis-ci/pr The Travis CI build passed
Details
@FreeHarry FreeHarry deleted the FreeHarry:patch-1 branch Apr 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants
You can’t perform that action at this time.