-
-
Notifications
You must be signed in to change notification settings - Fork 963
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 crash in printer config when switching tabs #6537
Conversation
@@ -470,7 +470,7 @@ void PartPlate::calc_gridlines(const ExPolygon& poly, const BoundingBox& pp_bbox | |||
int count = 0; | |||
int step = 10; | |||
// Orca: use 500 x 500 bed size as baseline. | |||
auto grid_counts = pp_bbox.size() / ((coord_t) scale_(step * 50)); | |||
const Point grid_counts = pp_bbox.size() / ((coord_t) scale_(step * 50)); |
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.
This line caused false address sanitizer exceptions that prevented me from debugging the real poblem so I fixed this. Isn't really related to the crash though.
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.
Tested, no more crashes and switching from single tool to multi tool machine works fine as well.
Thank you!
* Fix ASAN with MSVC * Make ASAN happy * Avoid deleting activated tab button by not calling `DeleteAllItems` (#SoftFever#6486)
* Fix ASAN with MSVC * Make ASAN happy * Avoid deleting activated tab button by not calling `DeleteAllItems` (#SoftFever#6486)
This fixes #6486