modedit bug fix
This commit is contained in:
parent
238c12dae0
commit
8a0e750ca9
|
@ -575,10 +575,12 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
|
||||||
case ID_PCB_PAD_SETUP:
|
case ID_PCB_PAD_SETUP:
|
||||||
{
|
{
|
||||||
BOARD_ITEM* item = GetCurItem();
|
BOARD_ITEM* item = GetCurItem();
|
||||||
if( item && item->Type()==TYPEPAD )
|
if( item )
|
||||||
InstallPadOptionsFrame( (D_PAD*) item, &dc, pos );
|
{
|
||||||
else
|
if( item->Type() != TYPEPAD )
|
||||||
InstallPadOptionsFrame( NULL, &dc, pos );
|
item = NULL;
|
||||||
|
}
|
||||||
|
InstallPadOptionsFrame( (D_PAD*) item, &dc, pos );
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue