diff --git a/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp b/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp index 756175e487..371e09b360 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp +++ b/src/Mod/PartDesign/Gui/ViewProviderLoft.cpp @@ -166,8 +166,8 @@ void ViewProviderLoft::highlightReferences(Part::Feature* base, const std::vecto highlighter.getEdgeColors(elements, colors); svp->LineColorArray.setValues(colors); } - else if (!edgeColors.empty()) { - svp->LineColorArray.setValues(edgeColors); + else { + svp->LineColorArray.setValues({svp->LineColor.getValue()}); edgeColors.clear(); } }