7
mirror of https://gitlab.com/kicad/code/kicad.git synced 2025-04-21 00:21:25 +00:00

Fix writing/parsing of pdf plot params.

Fixes https://gitlab.com/kicad/code/kicad/-/issues/19446
This commit is contained in:
Jeff Young 2025-01-12 13:43:06 +00:00
parent e3e7a4c97a
commit 4049b622f9
2 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,7 @@ pcbplotparams
pdf_back_fp_property_popups
pdf_front_fp_property_popups
pdf_metadata
pdf_single_document
plotframeref
plotfptext
plotinvisibletext

View File

@ -215,6 +215,7 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter ) const
KICAD_FORMAT::FormatBool( aFormatter, getTokenName( T_pdf_back_fp_property_popups ),
m_PDFBackFPPropertyPopups );
KICAD_FORMAT::FormatBool( aFormatter, getTokenName( T_pdf_metadata ), m_PDFMetadata );
KICAD_FORMAT::FormatBool( aFormatter, getTokenName( T_pdf_single_document ), m_PDFSingle );
// DXF options
KICAD_FORMAT::FormatBool( aFormatter, getTokenName( T_dxfpolygonmode ), m_DXFPolygonMode );
@ -762,13 +763,17 @@ void PCB_PLOT_PARAMS_PARSER::Parse( PCB_PLOT_PARAMS* aPcbPlotParams )
break;
case T_pdf_back_fp_property_popups:
aPcbPlotParams->m_PDFFrontFPPropertyPopups = parseBool();
aPcbPlotParams->m_PDFBackFPPropertyPopups = parseBool();
break;
case T_pdf_metadata:
aPcbPlotParams->m_PDFMetadata = parseBool();
break;
case T_pdf_single_document:
aPcbPlotParams->m_PDFSingle = parseBool();
break;
case T_dxfpolygonmode:
aPcbPlotParams->m_DXFPolygonMode = parseBool();
break;