X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaImageIODicomScanner.cpp;h=8e71e83e9bee22de08fc2a5698a80ab41ba9598c;hb=dd6cfbad206f1743fc7226c43b835b782c1f46ee;hp=7b1b0b7d4cadfd5ec603aacb43072412ff0e3217;hpb=3674f1b2d43fb9523f6b8e235ee62189092dfdcb;p=creaImageIO.git diff --git a/src/creaImageIODicomScanner.cpp b/src/creaImageIODicomScanner.cpp index 7b1b0b7..8e71e83 100644 --- a/src/creaImageIODicomScanner.cpp +++ b/src/creaImageIODicomScanner.cpp @@ -176,7 +176,7 @@ void DicomImageScanner::ReadAttributes(const std::string& filename, if ( attr.find("D0004_1500") != attr.end()) { boost::filesystem::path full_path(filename); - std::string f = full_path.leaf(); + std::string f = full_path.leaf().string(); attr["D0004_1500"] = f; } if ( attr.find("FullFileName")!= attr.end())