From 5d383f188557c394269440ed28ae523907caf1c1 Mon Sep 17 00:00:00 2001 From: Marco Mattila Date: Sat, 24 Nov 2012 18:02:10 +0200 Subject: [PATCH] Fix saving of local thermal parameters in pcbnew legacy_plugin. --- pcbnew/legacy_plugin.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pcbnew/legacy_plugin.cpp b/pcbnew/legacy_plugin.cpp index cf565fb466..e7505df754 100644 --- a/pcbnew/legacy_plugin.cpp +++ b/pcbnew/legacy_plugin.cpp @@ -3367,10 +3367,10 @@ void LEGACY_PLUGIN::savePAD( const D_PAD* me ) const fprintf( m_fp, ".ZoneConnection %d\n", me->GetZoneConnection() ); if( me->GetThermalWidth() != 0 ) - fprintf( m_fp, ".ThermalWidth %d\n", me->GetThermalWidth() ); + fprintf( m_fp, ".ThermalWidth %s\n", fmtBIU( me->GetThermalWidth() ).c_str() ); if( me->GetThermalGap() != 0 ) - fprintf( m_fp, ".ThermalGap %d\n", me->GetThermalGap() ); + fprintf( m_fp, ".ThermalGap %s\n", fmtBIU( me->GetThermalGap() ).c_str() ); fprintf( m_fp, "$EndPAD\n" ); @@ -3430,10 +3430,10 @@ void LEGACY_PLUGIN::SaveMODULE( const MODULE* me ) const fprintf( m_fp, ".ZoneConnection %d\n", me->GetZoneConnection() ); if( me->GetThermalWidth() != 0 ) - fprintf( m_fp, ".ThermalWidth %d\n", me->GetThermalWidth() ); + fprintf( m_fp, ".ThermalWidth %s\n", fmtBIU( me->GetThermalWidth() ).c_str() ); if( me->GetThermalGap() != 0 ) - fprintf( m_fp, ".ThermalGap %d\n", me->GetThermalGap() ); + fprintf( m_fp, ".ThermalGap %s\n", fmtBIU( me->GetThermalGap() ).c_str() ); // attributes if( me->GetAttributes() != MOD_DEFAULT )