Salome HOME
Concealed objects now also ersaed in the viewer
[modules/shaper.git] / src / Config / Config_Common.cpp
index b3a93acd1963a5fd52eaf6a78e9294803172cd55..a8c6df0a55ceafc3d9983aaa00f667cd963d68fb 100644 (file)
@@ -14,7 +14,8 @@
 #include <sstream> // for stringstream\r
 \r
 #include <string>\r
-#include <algorithm> // for std::transform\r\r
+#include <algorithm> // for std::transform\r
+\r
 bool isElementNode(xmlNodePtr theNode)\r
 {\r
   return theNode->type == XML_ELEMENT_NODE;\r
@@ -95,6 +96,8 @@ bool getValidatorInfo(xmlNodePtr theNode, std::string& outValidatorId,
 \r
 std::string library(const std::string& theLibName)\r
 {\r
+  if(theLibName.empty())\r
+    return std::string();\r
   std::string aLibName = theLibName;\r
 #ifndef WIN32\r
   static std::string aLibExt( ".so" );\r