X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FPartSet%2FPartSet_IconFactory.cpp;h=d6f054093c3e973790d95e41501a563c3d410a86;hb=b4dc47afe796ac81456fbe94f1a541f674a79682;hp=abe6aa02599cb656bcd66a7f60d0044856004e3a;hpb=95375993f1f35e4716475c0b0c8e265c082c875d;p=modules%2Fshaper.git diff --git a/src/PartSet/PartSet_IconFactory.cpp b/src/PartSet/PartSet_IconFactory.cpp index abe6aa025..d6f054093 100644 --- a/src/PartSet/PartSet_IconFactory.cpp +++ b/src/PartSet/PartSet_IconFactory.cpp @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2019 CEA/DEN, EDF R&D +// Copyright (C) 2014-2020 CEA/DEN, EDF R&D // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -137,6 +137,8 @@ QIcon PartSet_IconFactory::getIcon(ObjectPtr theObj) return QIcon(":icons/group_face.png"); case GeomAPI_Shape::SOLID: return QIcon(":icons/group_solid.png"); + default: // [to avoid compilation warning] + break; } } ResultBodyPtr aBody = std::dynamic_pointer_cast(aResult); @@ -151,6 +153,8 @@ QIcon PartSet_IconFactory::getIcon(ObjectPtr theObj) case GeomAPI_Shape::WIRE: return QIcon(":pictures/wire.png"); case GeomAPI_Shape::EDGE: return QIcon(":pictures/edge.png"); case GeomAPI_Shape::VERTEX: return QIcon(":pictures/vertex.png"); + default: // [to avoid compilation warning] + break; } } } @@ -163,11 +167,9 @@ void PartSet_IconFactory::processEvent(const std::shared_ptr& th Events_Loop::loop()->eventByName(Config_FeatureMessage::GUI_EVENT())) { std::shared_ptr aFeatureMsg = std::dynamic_pointer_cast(theMessage); - if (!aFeatureMsg->isInternal()) { - ActionInfo aFeatureInfo; - aFeatureInfo.initFrom(aFeatureMsg); - // Remember features icons - myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile; - } + ActionInfo aFeatureInfo; + aFeatureInfo.initFrom(aFeatureMsg); + // Remember features icons + myIcons[QString::fromStdString(aFeatureMsg->id())] = aFeatureInfo.iconFile; } } \ No newline at end of file