From 0625788583bcd98c10913e484fc2f8e5e59b4584 Mon Sep 17 00:00:00 2001 From: Vojtech Bubnik Date: Wed, 14 Apr 2021 14:25:25 +0200 Subject: [PATCH] Fixed obvious bug in move operator, discovered by clang lint ran by Tamas. --- src/libslic3r/SupportMaterial.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libslic3r/SupportMaterial.cpp b/src/libslic3r/SupportMaterial.cpp index 1242df1ea..08cd04b90 100644 --- a/src/libslic3r/SupportMaterial.cpp +++ b/src/libslic3r/SupportMaterial.cpp @@ -3186,7 +3186,7 @@ struct MyLayerExtruded MyLayerExtruded& operator=(MyLayerExtruded &&rhs) { this->layer = rhs.layer; this->extrusions = std::move(rhs.extrusions); - this->m_polygons_to_extrude = std::move(m_polygons_to_extrude); + this->m_polygons_to_extrude = std::move(rhs.m_polygons_to_extrude); rhs.layer = nullptr; return *this; }