X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIODicomImageReader2.cpp;h=aa67c76da8ddf28da92912465e74c3e4ed9eb9cd;hb=dd6cfbad206f1743fc7226c43b835b782c1f46ee;hp=5e8b5705c75bc68538fb4a5d3818520cb6a8649a;hpb=3674f1b2d43fb9523f6b8e235ee62189092dfdcb;p=creaImageIO.git diff --git a/src/creaImageIODicomImageReader2.cpp b/src/creaImageIODicomImageReader2.cpp index 5e8b570..aa67c76 100644 --- a/src/creaImageIODicomImageReader2.cpp +++ b/src/creaImageIODicomImageReader2.cpp @@ -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" )