floating point numbers with naked decimal point not parsed correctly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pcb |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The footprint element line:
ElementLine [-38.700mm -26.200mm 38.700mm -26.200mm .50mm ]
will not be parsed correctly and throws an error.
Placing a leading zero will fix the issue as shown below:
ElementLine [-38.700mm -26.200mm 38.700mm -26.200mm 0.50mm ]
This behavior was not seen in 20100929 release of PCB but shows up in
20110918.
Running Ubuntu 10.4 LTS.
Test case below should throw error on first elementline statement. Loading footprint
into pcb will give the error.
Element[0x00000000 "" "" "" 0.25mm 0.25mm 0.5mm 0.5mm 0 100 0x00000000]
#NHD-C12864LZ graphic LCD display
(
# X Y thick clear mask drill name numb flag
Pin[ 0.64mm 25.15mm 1.1mm 0.125mm 1.3mm 0.67mm "vdd" "14" "pin" ]
Pin[ 1.91mm 25.15mm 1.1mm 0.125mm 1.3mm 0.67mm "db7" "13" "pin" ]
Pin[ 3.18mm 25.15mm 1.1mm 0.125mm 1.3mm 0.67mm "db6" "12" "pin" ]
Pin[ 4.45mm 25.15mm 1.1mm 0.125mm 1.3mm 0.67mm "db5" "11" "pin" ]
Pin[ 5.72mm 25.15mm 1.1mm 0.125mm 1.3mm 0.67mm "db4" "10" "pin" ]
Pin[ 6.99mm 25.15mm 1.1mm 0.125mm 1.3mm 0.67mm "db3" "9" "pin" ]
Pin[ 8.26mm 25.15mm 1.1mm 0.125mm 1.3mm 0.67mm "db2" "8" "pin" ]
#outline
ElementLine [-38.700mm -26.200mm 38.700mm -26.200mm .50mm ] #top, left to right
ElementLine [ 38.700mm -26.200mm 38.700mm 26.200mm .50mm ] #right, top to bottom
ElementLine [ 38.700mm 26.200mm -38.700mm 26.200mm .50mm ] #bottom, right to left
ElementLine [-38.700mm 26.200mm -38.700mm -26.200mm .50mm ] #left, bottom to top
)
Changed in pcb: | |
status: | Fix Committed → Fix Released |
Changed in pcb: | |
milestone: | none → pcb-20140316 |
Fixed in commit edb19353.
Thanks for the report :)