From d3281a66eb416e3d636f5e108843455ecb44951d Mon Sep 17 00:00:00 2001 From: wmayer Date: Sun, 13 Sep 2015 18:46:06 +0200 Subject: [PATCH] + fix whitespace, fix notification of changed property in view provider --- src/Mod/Part/Gui/ViewProviderExt.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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)