Move to getters/setters for aux and grid origin

Fixes https://gitlab.com/kicad/code/kicad/-/issues/8836
This commit is contained in:
Jon Evans
2021-11-08 22:36:40 -05:00
parent ee7e3fc171
commit 75d75799f7
20 changed files with 57 additions and 41 deletions
+1 -1
View File
@@ -340,7 +340,7 @@ void AddGerberX2Header( PLOTTER* aPlotter, const BOARD* aBoard, bool aUseX1Compa
// Please, if absolute Pcbnew coordinates, one day, are set by user, change the way
// the key is built to ensure file only using the *same* axis have the same key.
wxString registration_id = "Original";
wxPoint auxOrigin = aBoard->GetDesignSettings().m_AuxOrigin;
wxPoint auxOrigin = aBoard->GetDesignSettings().GetAuxOrigin();
if( aBoard->GetPlotOptions().GetUseAuxOrigin() && auxOrigin.x && auxOrigin.y )
registration_id.Printf( "PX%xPY%x", auxOrigin.x, auxOrigin.y );