From 9a2829f1e28438c25d9f2a97d6b3d59ce63f00f7 Mon Sep 17 00:00:00 2001 From: dickelbeck Date: Sun, 6 Jan 2008 00:45:49 +0000 Subject: [PATCH] support comments in dsn files --- pcbnew/dsn.cpp | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/pcbnew/dsn.cpp b/pcbnew/dsn.cpp index aff962aa52..cbbc1d0fba 100644 --- a/pcbnew/dsn.cpp +++ b/pcbnew/dsn.cpp @@ -601,12 +601,22 @@ L_read: goto exit; } - cur = next; + cur = start; + + // skip leading whitespace + while( cur= limit ) goto L_read;