From a7db378b8ae271447f802216dc2faf40c472ba5e Mon Sep 17 00:00:00 2001 From: Joseph Lenox Date: Mon, 7 May 2018 22:16:20 -0500 Subject: [PATCH] Remember to clean up old grid array before filling it up again. --- src/GUI/Plater/Plate2D.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/GUI/Plater/Plate2D.cpp b/src/GUI/Plater/Plate2D.cpp index 1ec395db9..194aaa467 100644 --- a/src/GUI/Plater/Plate2D.cpp +++ b/src/GUI/Plater/Plate2D.cpp @@ -258,6 +258,7 @@ void Plate2D::update_bed_size() { const auto& center = bb.center(); this->print_center = wxPoint(unscale(center.x), unscale(center.y)); + this->grid.clear(); // clear out the old grid // Cache bed contours and grid { const auto& step { scale_(10.0) }; // want a 10mm step for the lines