-
-
Notifications
You must be signed in to change notification settings - Fork 301
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 bug introduced in the issue #466 #500
Conversation
Tested in relbranch78, it fixes the problem, thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not entirely sure this is the best solution, but I don't have anything better and I can't replicate the problem in the first place (although I've definitely had this issue before).
Hello, The way how to reproduce this bug is start wxGUI in the fullscreen mode. Another way how to set wxGUI fullscreen mode:
Some usefull information from debugging: A. Start
B. Start
|
You're welcome. |
Given the debugging you showed I looked at it again and found the cause in _updateM function in buffered:
When you remove that line, it should start working again even without your patch. I was trying to figure out why the line was there in the first place but couldn't find or think of anything. This code has been changing so it could be a remnant, but it's hard to tell. I tested it and it doesn't seem to introduce any problems but perhaps others could test. There is a separate bug now when closing map displays before loading workspace caused by my recent changes, I will address that in separate PR. |
I tested your fix. Test results: A. Empty bitmap buffer size is correct. The vector map was rendered fine. B. The vector map wasn't rendered. Error message:
|
I suspect this error is to certain extent unrelated as it has been showing up in different circumstances. The environment with the rendering dimensions needs to be consistent across the rendering commands, which apparently is not and it is being changed during the rendering process due to some resizing event. |
I tested PR #552 (on the GNU/Linux, MS Win OS) with your patch
and it works properly. |
e5504f6
to
9983f0c
Compare
I confirm this bug #466. The solution is set the correct empty bitmap buffer size.