wxWidgets 2.8 compatibility fixes.

This commit is contained in:
Maciej Suminski 2014-07-09 15:10:32 +02:00
parent 5275d4b58f
commit d7c3c7828b
2 changed files with 2 additions and 2 deletions

View File

@ -305,7 +305,7 @@ int MODULE_TOOLS::EnumeratePads( TOOL_EVENT& aEvent )
m_frame->SaveCopyInUndoList( module, UR_MODEDIT ); m_frame->SaveCopyInUndoList( module, UR_MODEDIT );
BOOST_FOREACH( D_PAD* pad, pads ) BOOST_FOREACH( D_PAD* pad, pads )
pad->SetPadName( wxString::Format( "%s%d", padPrefix, padNumber++ ) ); pad->SetPadName( wxString::Format( wxT( "%s%d" ), padPrefix.c_str(), padNumber++ ) );
break; break;
} }

View File

@ -63,7 +63,7 @@ bool PLACEMENT_TOOL::Init()
menu->AppendSeparator(); menu->AppendSeparator();
menu->Add( COMMON_ACTIONS::distributeHorizontally ); menu->Add( COMMON_ACTIONS::distributeHorizontally );
menu->Add( COMMON_ACTIONS::distributeVertically ); menu->Add( COMMON_ACTIONS::distributeVertically );
m_selectionTool->AddSubMenu( menu, wxString( "Align/distribute" ), m_selectionTool->AddSubMenu( menu, _( "Align/distribute" ),
SELECTION_CONDITIONS::MoreThan( 1 ) ); SELECTION_CONDITIONS::MoreThan( 1 ) );
setTransitions(); setTransitions();