[dia] dxf: Don't complain about 999 comment code



commit eac4edf935b4123842978d544befe86991603162
Author: Hans Breuer <hans breuer org>
Date:   Sun Jun 19 17:45:41 2011 +0200

    dxf: Don't complain about 999 comment code
    
    999 is apparently not used by AutoCAD, but it seems to
    get used by all those open source programs to advertise
    for themselves ;)

 plug-ins/dxf/dxf-import.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/dxf/dxf-import.c b/plug-ins/dxf/dxf-import.c
index 1d0b2a4..0b10d26 100644
--- a/plug-ins/dxf/dxf-import.c
+++ b/plug-ins/dxf/dxf-import.c
@@ -1283,6 +1283,8 @@ import_dxf(const gchar *filename, DiagramData *dia, void* user_data)
 		  /*printf( "reading section objects\n" );*/
                     read_section_entities_dxf(filedxf, data, dia);
 		}
+            } else if(data->code == 999) {
+	      /* Don't complain on comments, but silently ignore */
 	    }
 	   else
 	     g_warning("Unknown dxf code %d", data->code);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]