diff --git a/pcbnew/plugins/kicad/pcb_plugin.cpp b/pcbnew/plugins/kicad/pcb_plugin.cpp index d210e083ec..77871e8025 100644 --- a/pcbnew/plugins/kicad/pcb_plugin.cpp +++ b/pcbnew/plugins/kicad/pcb_plugin.cpp @@ -1754,7 +1754,7 @@ void PCB_PLUGIN::format( const PAD* aPad, int aNestLevel ) const m_out->Print( nested_level, "(gr_poly\n" ); formatPolyPts( outline, nested_level, ADVANCED_CFG::GetCfg().m_CompactSave ); - m_out->Print( nested_level, "" ); // just to align the next info at the right place + m_out->Print( nested_level, " " ); // just to align the next info at the right place } break; diff --git a/pcbnew/tools/pcb_control.cpp b/pcbnew/tools/pcb_control.cpp index b5a53b5c64..099a9685cb 100644 --- a/pcbnew/tools/pcb_control.cpp +++ b/pcbnew/tools/pcb_control.cpp @@ -1250,9 +1250,9 @@ int PCB_CONTROL::UpdateMessagePanel( const TOOL_EVENT& aEvent ) if( pcbFrame && selection.GetSize() == 2 ) { auto clearanceString = - [&]( const DRC_CONSTRAINT& constraint ) + [&]( const DRC_CONSTRAINT& curr_constraint ) { - return StringFromValue( units, constraint.m_Value.Min(), true ); + return StringFromValue( units, curr_constraint.m_Value.Min(), true ); }; BOARD_ITEM* a = static_cast( selection[0] );