From d52f246b2abbeeca644ca9e5f4f36d7e8d225305 Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Sat, 10 Sep 2022 13:24:55 -0700 Subject: [PATCH] Allow up to three discarded characters when detecting gerbers Some layout programs add a blank block at the beginning but include the terminating '*' on a line before starting the actual data. This is ignored by GerbView so we all this type of behavior in the mimetype file detection as well Suggested by Mark Jeronimus Fixes https://gitlab.com/kicad/code/kicad/issues/12097 (cherry picked from commit 64335d94d715169927e92e7f5ffd0e16438de4db) --- resources/linux/mime/kicad-gerbers.xml.in | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/resources/linux/mime/kicad-gerbers.xml.in b/resources/linux/mime/kicad-gerbers.xml.in index 0c32b719f1..7b3858990e 100644 --- a/resources/linux/mime/kicad-gerbers.xml.in +++ b/resources/linux/mime/kicad-gerbers.xml.in @@ -7,13 +7,14 @@ - + + - - - + + + - +