mgetl: fix single line without EOL 62/19462/1
Antoine ELIAS [Sat, 7 Oct 2017 15:44:28 +0000 (17:44 +0200)]
Change-Id: If6301c214b1208dcc3857239454db2100eebccbd

scilab/modules/fileio/src/cpp/mgetl.cpp

index d0c7f80..334ee4e 100644 (file)
@@ -190,6 +190,12 @@ int mgetl(int iFileID, int iLineCount, wchar_t ***pwstLines)
                 }
             }
         }
+
+        if (previous.size())
+        {
+            lst.push_back(previous);
+            previous.clear();
+        }
     }
     else
     {