From 0a46aeea09fe9ac774e869908791b33ce64fef4a Mon Sep 17 00:00:00 2001 From: YuSanka Date: Mon, 18 Sep 2023 16:29:44 +0200 Subject: [PATCH] Variable layer height is limited to 3 digits (related to PR#10298) --- src/slic3r/GUI/GLCanvas3D.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index e4fdd847dc..f1c25d79d1 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -346,7 +346,7 @@ std::string GLCanvas3D::LayersEditing::get_tooltip(const GLCanvas3D& canvas) con } } if (h > 0.0f) - ret = std::to_string(h); + ret = format("%.3f", h); } } return ret;