fix in ViewProviderPart.cpp

This commit is contained in:
Zoltan Hubert
2021-07-26 13:32:03 +02:00
parent e2285f0ab7
commit 5804217548

View File

@@ -119,9 +119,8 @@ QIcon ViewProviderPart::getIcon(void) const
App::Part* part = static_cast<App::Part*>(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));
}