← Back to team overview

kicad-developers team mailing list archive

[PATCH] Allow comments in Draw command of library entries

 

I was having trouble loading many of the libraries found at:

http://library.oshec.org/

I discovered the problem was that the DRAW command in the latest versions does not allow comments between DRAW and ENDDRAW.  This simple patch will allow those comments.

=== modified file 'eeschema/class_libentry.cpp'
--- eeschema/class_libentry.cpp	2012-05-16 16:59:47 +0000
+++ eeschema/class_libentry.cpp	2012-06-01 21:37:49 +0000
@@ -854,6 +854,9 @@
         case 'B':    /* Bezier Curves */
             newEntry = ( LIB_ITEM* ) new LIB_BEZIER( this );
             break;
+	    	    
+	case '#':    /* Comment */
+            continue;
 
         default:
             aErrorMsg.Printf( wxT( "undefined DRAW command %c" ), line[0] );


Follow ups