GerbView: Incorrect scaling of EXCELLON drill file
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
KiCad |
Fix Released
|
Medium
|
jean-pierre charras |
Bug Description
This might be a PEBCAK instead of a bug, but I'll report it anyway because I could not find any information about this specific issue. I can reproduce it with recent builds of KiCad on both Windows and Linux.
I do have an EXCELLON drill file that was generated with Altium Designer and has the following file header:
M48
;Layer_
;FILE_FORMAT=2:5
INCH,LZ
;TYPE=PLATED
I can open this file in GerbView, but the scaling is not correct. The size of the individual drills is OK, but the x and y positions are scaled by a factor of 10, i.e. if the correct position of a drill is x=0.1in y=0.1in GerbView shows it at x=1.0in y=1.0in. The corresponding GERBER files do not have this issue.
Interestingly, the format information in the upper toolbar says "fmt: in X2.4 Y2.4 no TZ" (see attached screenshot), but it should be X2.5 Y2.5 according to the file header. The GERBER files are correctly identified as "fmt: in X2.5 Y2.5 no LZ".
Unfortunately I can not share the whole file, but I have extracted a small part of it that should be sufficient to demonstrate the problem.
-------
Version information:
Application: kicad
Version: (5.0.0-
Libraries:
wxWidgets 3.0.3
libcurl/7.54.1 OpenSSL/1.0.2l zlib/1.2.11 libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Platform: Windows 7 (build 7601, Service Pack 1), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
wxWidgets: 3.0.3 (wchar_t,wx containers,
Boost: 1.60.0
Curl: 7.54.1
Compiler: GCC 7.1.0 with C++ ABI 1011
Build settings:
USE_
USE_
KICAD_
KICAD_
KICAD_
KICAD_
BUILD_
KICAD_
KICAD_SPICE=ON
Changed in kicad: | |
assignee: | nobody → Jon Evans (craftyjon) |
milestone: | none → 5.0.0-rc2 |
Changed in kicad: | |
importance: | Undecided → Medium |
status: | New → Confirmed |
Changed in kicad: | |
status: | Fix Committed → Confirmed |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Changed in kicad: | |
status: | Fix Released → New |
assignee: | Jon Evans (craftyjon) → nobody |
Changed in kicad: | |
status: | Fix Committed → Fix Released |
Fixed in revision 3e033aee0cc0469 20637ffb545d0d9 4f54489b4f /git.launchpad. net/kicad/ patch/? id=3e033aee0cc0 46920637ffb545d 0d94f54489b4f
https:/