← Back to team overview

kicad-developers team mailing list archive

Strange component preview in eeschema

 

A strange thing, nothing serious but a bug somewere in any case. I have
a lib with this 'component' which is a number nine:

DEF DIGIT-NINE U 0 40 Y Y 1 F N
F0 "U" 0 -250 60 H V C CNN
F1 "DIGIT-NINE" 0 -350 60 H V C CNN
F2 "" -100 2000 50 H V C CNN
F3 "" -100 2000 50 H V C CNN
DRAW
A -316 807 716 -6 -807 0 1 200 N 400 800 -200 100
A 0 1300 400 -900 1800 0 1 200 N 0 900 -400 1300
A 0 1500 400 1 1799 0 1 200 N 400 1500 -400 1500
P 2 0 1 200  -400 1300  -400 1500 N
P 2 0 1 200  0 900  400 900 N
P 2 0 1 200  400 1500  400 800 N
X ~ ~ -500 0 300 U 50 50 1 1 I
X ~ ~ 700 0 300 U 50 50 1 1 I
ENDDRAW
ENDDEF

in the schematic and library browser it's correct, in the new previewer
it's... well, really wrong.

It was generated flipping the drawing for the digit six, both
horizontally and vertically (not rotating). I think that probably the
flipping inverted the winding of the arcs or something like that. Are
there two different drawing routines? it shouldn't...

Arcs gave me neverending problems with coordinate flipping (as the fixes
in the plot routines tell:P), maybe it's a thing like that.

Tell me if you need more info.

-- 
Lorenzo Marcantonio
Logos Srl