diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 49114d8092..e287a96302 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -231,7 +231,7 @@ Emboss::FontFileWithCache calib_font_with_cache(std::move(WxFontUtils::create_fo /// "y" is the font height in millimeters. /// "z" is the height of the extruded text in millimeters. /// Position of model against text pivot. -static TriangleMesh get_ortho_box_mesh(Vec3d& size, Vec3f& position = Vec3f()) +static TriangleMesh get_ortho_box_mesh(Vec3d size, Vec3f position = Vec3f()) { TriangleMesh mesh(make_cube(size.x(), size.y(), size.z())); // get box mesh.translate(position); // move mesh to indeed place