fix Bug #1345193: Drill Map coordinates alway 0 when using Gerber format (due to a missing plotter initialization).

This commit is contained in:
jean-pierre charras
2014-07-21 11:42:36 +02:00
parent a57f7ae8cd
commit cab7e67b59
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -43,6 +43,9 @@ void GERBER_PLOTTER::SetViewport( const wxPoint& aOffset, double aIusPerDecimil,
plotScale = 1; // Plot scale is *always* 1.0
m_IUsPerDecimil = aIusPerDecimil;
// gives now a default value to iuPerDeviceUnit (because the units of the caller is now known)
// which could be modified later by calling SetGerberCoordinatesFormat()
iuPerDeviceUnit = pow( 10.0, m_gerberUnitFmt ) / ( m_IUsPerDecimil * 10000.0 );
// We don't handle the filmbox, and it's more useful to keep the
// origin at the origin