From 458e0727f55d0d1394c1cf9cd3d3778ca99a9fa3 Mon Sep 17 00:00:00 2001 From: wmayer Date: Sat, 21 Sep 2013 07:22:17 +0200 Subject: [PATCH] + cppcheck fixes --- src/Gui/CommandView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/CommandView.cpp b/src/Gui/CommandView.cpp index 62ba88f7b..3fcbeaa81 100644 --- a/src/Gui/CommandView.cpp +++ b/src/Gui/CommandView.cpp @@ -796,7 +796,7 @@ void StdCmdToggleObjects::activated(int iMsg) (App::DocumentObject::getClassTypeId()); for (std::vector::const_iterator it=obj.begin();it!=obj.end();++it) { - if (doc && doc->isShow((*it)->getNameInDocument())) + if (doc->isShow((*it)->getNameInDocument())) doCommand(Gui,"Gui.getDocument(\"%s\").getObject(\"%s\").Visibility=False" , app->getName(), (*it)->getNameInDocument()); else