Salome HOME
IPAL52828: No Creation Info available for a GEOM object imported from XAO file
[modules/geom.git] / src / GEOMGUI / GEOMGUI_CreationInfoWdg.cxx
index 5c3681e28df6f1fa778bac57d987225ebce38c1c..35a59ccfb6c2ab2022e1589a4577e9b64d7739d4 100644 (file)
@@ -124,7 +124,10 @@ void GEOMGUI_CreationInfoWdg::setInfo( GEOM::CreationInformationSeq& info )
           }
           // get icon
           QString prefix = plugin_name.isEmpty() ? "GEOM" : plugin_name;
-          icon = resMgr->loadPixmap( prefix, tr( ("ICO_"+name).toLatin1().constData() ), false );
+          if ( name.startsWith( "Import"))
+            icon = resMgr->loadPixmap( "GEOM", tr("ICO_IMPORT_SHAPE"), true );
+          else
+            icon = resMgr->loadPixmap( prefix, tr( ("ICO_"+name).toLatin1().constData() ), false );
 
           // translate operation name
           operationName = tr( ("MEN_"+name).toLatin1().constData() );