]> SALOME platform Git repositories - modules/shaper.git/blobdiff - src/ExchangePlugin/ExchangePlugin_Tools.cpp
Salome HOME
Fix for the issue #2290 : error in exportToXAO call from python
[modules/shaper.git] / src / ExchangePlugin / ExchangePlugin_Tools.cpp
index 786a59d52570652c126285194881ea59cbfdb01c..1d2000236e6a885bdd2f9ddb0122c9651b0538e0 100644 (file)
@@ -34,15 +34,15 @@ std::list<std::string> ExchangePlugin_Tools::split(const std::string& theString,
 
 std::string ExchangePlugin_Tools::selectionType2xaoDimension(const std::string& theType)
 {
-  if (theType == "Vertices" || theType == "vertex")
+  if (theType == "Vertices" || theType == "vertex" || theType == "VERTEX")
     return "vertex";
-  else if (theType == "Edges" || theType == "edge")
+  else if (theType == "Edges" || theType == "edge" || theType == "EDGE")
     return "edge";
-  else if (theType == "Faces" || theType == "face")
+  else if (theType == "Faces" || theType == "face" || theType == "FACE")
     return "face";
-  else if (theType == "Solids" || theType == "solid")
+  else if (theType == "Solids" || theType == "solid" || theType == "SOLID")
     return "solid";
-  else if (theType == "Part" || theType == "part")
+  else if (theType == "Part" || theType == "part" || theType == "PART")
     return "part";
 
   return std::string();