]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMLib.cpp
Feature #1711 CreaDevManager application implementation
[crea.git] / lib / creaDevManagerLib / modelCDMLib.cpp
index 69bfcff7d3f92a023c8c8590bdf341b39ecf7ccc..5cfc702a11d4aa945ac1b3940d5d323cd053641e 100644 (file)
@@ -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<std::string> segs;
@@ -504,6 +507,7 @@ bool modelCDMLib::SetLibraryInclude(const std::string& library_name, const bool&
                 {
                   outs << "\n";
                 }
+
             }
 
           CMFile.close();