From 580421754820986afd8b9ec6bc80f4a1e09a4702 Mon Sep 17 00:00:00 2001 From: Zoltan Hubert Date: Mon, 26 Jul 2021 13:32:03 +0200 Subject: [PATCH] fix in ViewProviderPart.cpp --- src/Gui/ViewProviderPart.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Gui/ViewProviderPart.cpp b/src/Gui/ViewProviderPart.cpp index da0e2188af..38543fc336 100644 --- a/src/Gui/ViewProviderPart.cpp +++ b/src/Gui/ViewProviderPart.cpp @@ -119,9 +119,8 @@ QIcon ViewProviderPart::getIcon(void) const App::Part* part = static_cast(this->getObject()); // the normal case for Std_Part const char* pixmap = sPixmap; - std::string type = part->Type.getStrValue(); // if it's flagged as an Assembly in its Type, it gets another icon - if (type == "Assembly") { pixmap = aPixmap; } + if (part->Type.getStrValue() == "Assembly") { pixmap = aPixmap; } return mergeGreyableOverlayIcons (Gui::BitmapFactory().pixmap(pixmap)); }