From 68d2427a347d0d8b0df0f42465289f1b662e23b1 Mon Sep 17 00:00:00 2001 From: tamasmeszaros Date: Mon, 17 May 2021 14:54:47 +0200 Subject: [PATCH] Fix marching squares test crash in debug builds --- src/libslic3r/SLA/RasterBase.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libslic3r/SLA/RasterBase.hpp b/src/libslic3r/SLA/RasterBase.hpp index bbb83b5a0..1cd688ccb 100644 --- a/src/libslic3r/SLA/RasterBase.hpp +++ b/src/libslic3r/SLA/RasterBase.hpp @@ -72,7 +72,8 @@ public: size_t width_px = 0; size_t height_px = 0; - Resolution(size_t w = 0, size_t h = 0) : width_px(w), height_px(h) {} + Resolution() = default; + Resolution(size_t w, size_t h) : width_px(w), height_px(h) {} size_t pixels() const { return width_px * height_px; } }; @@ -81,7 +82,8 @@ public: double w_mm = 1.; double h_mm = 1.; - PixelDim(double px_width_mm = 0.0, double px_height_mm = 0.0) + PixelDim() = default; + PixelDim(double px_width_mm, double px_height_mm) : w_mm(px_width_mm), h_mm(px_height_mm) {} };