summaryrefslogtreecommitdiff
path: root/common/project.cpp
diff options
context:
space:
mode:
authorleo2005-12-20 20:22:46 +0000
committerleo2005-12-20 20:22:46 +0000
commit98f3bd8740246fe88c3db3278fe533dc2f368d12 (patch)
tree076cfa089cd19faabc144deca4d0fb303d97cb07 /common/project.cpp
parent85c3a7f5afcc88696d50866525588756e6bf80c3 (diff)
Updated the Pieces Library Manager to use the new categories.
git-svn-id: http://svn.leocad.org/trunk@443 c7d43263-9d01-0410-8a33-9dba5d9f93d6
Diffstat (limited to 'common/project.cpp')
-rw-r--r--common/project.cpp6
1 files changed, 4 insertions, 2 deletions
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<File>& 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))
{
/*