]> Creatis software - creaImageIO.git/blobdiff - src2/creaImageIOTreeDescriptor.cpp
bug correction : no spaces in descriptor files
[creaImageIO.git] / src2 / creaImageIOTreeDescriptor.cpp
index 6849b10bd6740f84cc36774381a551473c0c25ff..cdbdc15584c30b3bd8a41c460b640dbfcd3c7b04 100644 (file)
@@ -1,5 +1,6 @@
 #include <creaImageIOTreeDescriptor.h>
 #include <boost/algorithm/string/split.hpp>
+#include <boost/algorithm/string/replace.hpp>
 #include <creaImageIOSystem.h>
 #include <boost/filesystem.hpp>
 
@@ -206,7 +207,7 @@ namespace creaImageIO
                                        Add(AttributeDescriptor( group,element,flag), ilevel);
                                }
                                else // "O" means if user's own tag.
-                               {       
+                               {       boost::algorithm::replace_all(descriptors[2],"_"," ");
                                        Add(AttributeDescriptor( descriptors[1].c_str(),descriptors[2].c_str(),flag), ilevel);
                                }
                        }