X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMLib.cpp;h=5cfc702a11d4aa945ac1b3940d5d323cd053641e;hb=2f886b3dbdc87d142f8363272b2bd226209b8b06;hp=69bfcff7d3f92a023c8c8590bdf341b39ecf7ccc;hpb=9f11db34cb1acacf545f819d6b552a95835d93bd;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMLib.cpp b/lib/creaDevManagerLib/modelCDMLib.cpp index 69bfcff..5cfc702 100644 --- a/lib/creaDevManagerLib/modelCDMLib.cpp +++ b/lib/creaDevManagerLib/modelCDMLib.cpp @@ -451,6 +451,9 @@ bool modelCDMLib::SetLibraryInclude(const std::string& library_name, const bool& while(!CMFile.eof()) { std::getline(CMFile, line); + if (CMFile.eof()) { + break; + } if(line != "") { std::vector segs; @@ -504,6 +507,7 @@ bool modelCDMLib::SetLibraryInclude(const std::string& library_name, const bool& { outs << "\n"; } + } CMFile.close();