modedit bug fix

This commit is contained in:
dickelbeck 2007-11-12 06:00:42 +00:00
parent 238c12dae0
commit 8a0e750ca9
1 changed files with 6 additions and 4 deletions

View File

@ -575,10 +575,12 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
case ID_PCB_PAD_SETUP:
{
BOARD_ITEM* item = GetCurItem();
if( item && item->Type()==TYPEPAD )
if( item )
{
if( item->Type() != TYPEPAD )
item = NULL;
}
InstallPadOptionsFrame( (D_PAD*) item, &dc, pos );
else
InstallPadOptionsFrame( NULL, &dc, pos );
}
break;