]> Creatis software - creaImageIO.git/blobdiff - src/creaImageIODicomImageReader2.cpp
Bug 1805:
[creaImageIO.git] / src / creaImageIODicomImageReader2.cpp
index 5e8b5705c75bc68538fb4a5d3818520cb6a8649a..aa67c76da8ddf28da92912465e74c3e4ed9eb9cd 100644 (file)
@@ -172,7 +172,7 @@ namespace creaImageIO
                          if ( i->first == "D0004_1500" )
                          {
                                  boost::filesystem::path full_path(filename);
-                                 std::string f = full_path.leaf();
+                                 std::string f = full_path.leaf().string();
                                  i->second = f;
                          }
                          else if ( i->first == "FullFileName" )
@@ -245,7 +245,7 @@ void DicomImageReader::ReadAttributes2(const std::string& filename,
                        if ( i->first == "D0004_1500" )
                        {
                                boost::filesystem::path full_path(filename);
-                               std::string f = full_path.leaf();
+                               std::string f = full_path.leaf().string();
                                i->second = f;
                        }
                        else if ( i->first == "FullFileName" )