From 98f3bd8740246fe88c3db3278fe533dc2f368d12 Mon Sep 17 00:00:00 2001 From: leo Date: Tue, 20 Dec 2005 20:22:46 +0000 Subject: Updated the Pieces Library Manager to use the new categories. git-svn-id: http://svn.leocad.org/trunk@443 c7d43263-9d01-0410-8a33-9dba5d9f93d6 --- common/project.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'common/project.cpp') diff --git a/common/project.cpp b/common/project.cpp index 9f60bb8..af5cf72 100644 --- a/common/project.cpp +++ b/common/project.cpp @@ -1228,7 +1228,7 @@ void Project::FileReadMPD(File& MPD, PtrArray& FileArray) const FileMem* CurFile = NULL; char Buf[1024]; - while (MPD.ReadString(Buf, 1024)) + while (MPD.ReadLine(Buf, 1024)) { String Line(Buf); @@ -1279,7 +1279,7 @@ void Project::FileReadLDraw(File* file, Matrix* prevmat, int* nOk, int DefColor, lcuint32 Offset = file->GetPosition(); file->Seek(0, SEEK_SET); - while (file->ReadString(buf, 1024)) + while (file->ReadLine(buf, 1024)) { strupr(buf); if (strstr(buf, "STEP")) @@ -4728,6 +4728,8 @@ void Project::HandleCommand(LC_COMMANDS id, unsigned long nParam) FileMem file; FileSave(&file, true); + // TODO: save piece IDs and reload. + if (SystemDoDialog(LC_DLG_LIBRARY, NULL)) { /* -- cgit v1.2.3