wxWidgets 2.8 compatibility fixes.
This commit is contained in:
parent
5275d4b58f
commit
d7c3c7828b
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue