diff --git a/src/Mod/Part/Gui/ViewProviderExt.cpp b/src/Mod/Part/Gui/ViewProviderExt.cpp index 7a4ce14bc..5a49ea392 100644 --- a/src/Mod/Part/Gui/ViewProviderExt.cpp +++ b/src/Mod/Part/Gui/ViewProviderExt.cpp @@ -420,13 +420,13 @@ void ViewProviderPartExt::onChanged(const App::Property* prop) } else if (prop == &DrawStyle) { if (DrawStyle.getValue() == 0) - pcLineStyle->linePattern = 0xffff; + pcLineStyle->linePattern = 0xffff; else if (DrawStyle.getValue() == 1) - pcLineStyle->linePattern = 0xf00f; + pcLineStyle->linePattern = 0xf00f; else if (DrawStyle.getValue() == 2) - pcLineStyle->linePattern = 0x0f0f; + pcLineStyle->linePattern = 0x0f0f; else - pcLineStyle->linePattern = 0xff88; + pcLineStyle->linePattern = 0xff88; } else { // if the object was invisible and has been changed, recreate the visual @@ -435,9 +435,9 @@ void ViewProviderPartExt::onChanged(const App::Property* prop) // The material has to be checked again (#0001736) onChanged(&DiffuseColor); } - - ViewProviderGeometryObject::onChanged(prop); } + + ViewProviderGeometryObject::onChanged(prop); } void ViewProviderPartExt::attach(App::DocumentObject *pcFeat)