Move drawing sheet datastructures to EDA_IU_SCALE.

Or mostly, at least.  Plotters still define their own mils-to-iu scale.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/14934
This commit is contained in:
Jeff Young
2023-06-12 22:34:25 +01:00
parent 62f24aca1e
commit 782c73300b
18 changed files with 91 additions and 107 deletions
+2 -2
View File
@@ -65,14 +65,14 @@ void PlotDrawingSheet( PLOTTER* plotter, const PROJECT* aProject, const TITLE_BL
if( plotColor == COLOR4D::UNSPECIFIED )
plotColor = COLOR4D( RED );
DS_DRAW_ITEM_LIST drawList;
DS_DRAW_ITEM_LIST drawList( unityScale );
// Print only a short filename, if aFilename is the full filename
wxFileName fn( aFilename );
// Prepare plot parameters
drawList.SetDefaultPenSize( PLOTTER::USE_DEFAULT_LINE_WIDTH );
drawList.SetMilsToIUfactor( iusPerMil );
drawList.SetPlotterMilsToIUfactor( iusPerMil );
drawList.SetPageNumber( aSheetNumber );
drawList.SetSheetCount( aSheetCount );
drawList.SetFileName( fn.GetFullName() ); // Print only the short filename