From 7dfa680eb45f1b5682b27f1a28a4b74b2720ac8d Mon Sep 17 00:00:00 2001 From: jean-pierre charras Date: Thu, 29 May 2025 10:17:29 +0200 Subject: [PATCH] PCB_PLOT_PARAMS::Format(): use locale independent double to string converter --- pcbnew/pcb_plot_params.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/pcb_plot_params.cpp b/pcbnew/pcb_plot_params.cpp index abaa5cf6ae..196abaa491 100644 --- a/pcbnew/pcb_plot_params.cpp +++ b/pcbnew/pcb_plot_params.cpp @@ -161,8 +161,8 @@ void PCB_PLOT_PARAMS::Format( OUTPUTFORMATTER* aFormatter ) const if( m_gerberPrecision != gbrDefaultPrecision ) aFormatter->Print( "(gerberprecision %d)", m_gerberPrecision ); - aFormatter->Print( "(dashed_line_dash_ratio %f)", GetDashedLineDashRatio() ); - aFormatter->Print( "(dashed_line_gap_ratio %f)", GetDashedLineGapRatio() ); + aFormatter->Print( "(dashed_line_dash_ratio %s)", FormatDouble2Str( GetDashedLineDashRatio() ).c_str() ); + aFormatter->Print( "(dashed_line_gap_ratio %s)", FormatDouble2Str( GetDashedLineGapRatio() ).c_str() ); // SVG options aFormatter->Print( "(svgprecision %d)", m_svgPrecision );