Update of /cvsroot/cmap/cmap
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31607
Modified Files:
PolishFormat.cpp
Log Message:
Skip deleted objects
Index: PolishFormat.cpp
===================================================================
RCS file: /cvsroot/cmap/cmap/PolishFormat.cpp,v
retrieving revision 1.24
retrieving revision 1.25
diff -u -d -r1.24 -r1.25
--- PolishFormat.cpp 11 May 2004 21:22:50 -0000 1.24
+++ PolishFormat.cpp 12 May 2004 05:12:49 -0000 1.25
@@ -121,6 +121,9 @@
printf("Writing file...\n");
for (unsigned short NumObj = 1; NumObj < Max_Num_OBJ; NumObj++) {
+ if (Index_Atr[obj[NumObj].num] == 0) // Skip deleted objects
+ continue;
+
// Ïðîâåðêà íà EXPORT
short DBF_line = Check_export(obj[NumObj].Cod + 1);
if (DBF_line == -1) // òèï òåêóùåãî îáúåêòà íå íàéäåí â òàáëèöå ïðåîáðàçîâàíèÿ
|