Commit 8a0e750c authored by dickelbeck's avatar dickelbeck

modedit bug fix

parent 238c12da
...@@ -575,10 +575,12 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event ) ...@@ -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 )
{
if( item->Type() != TYPEPAD )
item = NULL;
}
InstallPadOptionsFrame( (D_PAD*) item, &dc, pos ); InstallPadOptionsFrame( (D_PAD*) item, &dc, pos );
else
InstallPadOptionsFrame( NULL, &dc, pos );
} }
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment