Salome HOME
refs #30 - Sketch base GUI: create, draw lines
[modules/shaper.git] / src / Model / Model_PluginManager.cpp
index eb279208afff32ba365016d136eac30c71cb7297..75cc0430c17ea114ed9f8b2f42c09ae8b2ceeda3 100644 (file)
@@ -22,9 +22,9 @@ shared_ptr<ModelAPI_Feature> Model_PluginManager::createFeature(string theFeatur
 
   LoadPluginsInfo();
   if (myPlugins.find(theFeatureID) != myPlugins.end()) {
-    if (myPluginObjs.find(myPlugins[theFeatureID]) == myPluginObjs.end()) {
+    myCurrentPluginName = myPlugins[theFeatureID];
+    if (myPluginObjs.find(myCurrentPluginName) == myPluginObjs.end()) {
       // load plugin library if not yet done
-      myCurrentPluginName = myPlugins[theFeatureID];
       loadLibrary(myCurrentPluginName);
     }
     if (myPluginObjs.find(myCurrentPluginName) != myPluginObjs.end()) {