mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
Fix several crash when build in debug mode (#9650)
* Fix crash when open bed shape dialog. DO NOT USE `auto` FOR EIGEN EXPRESSION RESULT! * Fix assertion failure when switching printer models
This commit is contained in:
@@ -247,13 +247,13 @@ void Bed_2D::repaint(const std::vector<Vec2d>& shape)
|
||||
// convert G - code coordinates into pixels
|
||||
Point Bed_2D::to_pixels(const Vec2d& point, int height)
|
||||
{
|
||||
auto p = point * m_scale_factor + m_shift;
|
||||
Vec2d p = point * m_scale_factor + m_shift;
|
||||
return Point(p(0) + Border, height - p(1) + Border);
|
||||
}
|
||||
|
||||
Point Bed_2D::to_pixels(const Point& point, int height)
|
||||
{
|
||||
auto p = point * m_scale_factor + Point(m_shift);
|
||||
Point p = point * m_scale_factor + Point(m_shift);
|
||||
return Point(p(0) + Border, height - p(1) + Border);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user