diff --git a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp index 423c23edd..b2edc0b97 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoMeasure.cpp @@ -1118,7 +1118,7 @@ void GLGizmoMeasure::render_dimensioning() } }; - auto scale_feature = [this](Measure::SurfaceFeature& feature, const TrafoData& trafo_data) { + auto scale_feature = [](Measure::SurfaceFeature& feature, const TrafoData& trafo_data) { switch (feature.get_type()) { case Measure::SurfaceFeatureType::Point: @@ -1146,6 +1146,7 @@ void GLGizmoMeasure::render_dimensioning() feature = Measure::SurfaceFeature(Measure::SurfaceFeatureType::Plane, normal, trafo_data.transform(origin), std::nullopt, idx); break; } + default: { break; } } };