← Back to team overview

kicad-developers team mailing list archive

Wrong mirror axis in pcb plot routine?

 

--0-1834799423-1200567040=:13761 Content-Type: text/plain; charset=us-ascii

I built Kicad from cvs code two days ago.
I got a problem with RefDef orientation in copper layer gerber file.
It did not match to orientation in pcbnew.
I fixed this problem with changing followed lines in plot_rtn.cpp:

298 if( no_miroir == 0 )
299 // size.y = -size.y; <- Before
300 size.x = -size.x; // Text is mirrored

Besides, Layer Select Box in menu toolbar had small size and wasn't displayed well.
This is workaround in tool_pcb.cpp:

621 m_SelLayerBox = new WinEDAChoiceBox( parent, ID_TOOLBARH_PCB_SELECT_LAYER,
622 wxPoint( -1, -1 ), wxSize( LISTBOX_WIDTH + 40, -1 ) );


Andrey.




____________________________________________________________________________________
Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 
 --0-1834799423-1200567040=:13761 Content-Type: text/html; charset=us-ascii

<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt"><div>I built Kicad from cvs code two days ago.<br>I got a problem with RefDef orientation in copper layer gerber file.<br>It did not match to orientation in pcbnew.<br>I fixed this problem with changing followed lines in plot_rtn.cpp:<br><br>298 &nbsp;&nbsp; if( no_miroir == 0 )<br>299 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // size.y = -size.y;&nbsp;&nbsp;&nbsp; &lt;- Before<br>300 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; size.x = -size.x;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; // Text is mirrored<br><br>Besides, Layer Select Box in menu toolbar had small size and wasn't displayed well.<br>This is workaround in tool_pcb.cpp:<br><br>621 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; m_SelLayerBox = new WinEDAChoiceBox(
parent, ID_TOOLBARH_PCB_SELECT_LAYER,<br>622 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; wxPoint( -1, -1 ), wxSize( LISTBOX_WIDTH + 40, -1 ) );<br>&nbsp; <br><br><br>Andrey.<br> </div></div><br>
<hr size=1>Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile. <a href="http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ "> Try it now.</a></body></html> --0-1834799423-1200567040=:13761-- 




Follow ups