modedit bug fix

This commit is contained in:
dickelbeck 2007-11-12 05:53:48 +00:00
parent b66c00b479
commit 238c12dae0
3 changed files with 31 additions and 18 deletions

View File

@ -4,6 +4,14 @@ Started 2007-June-11
Please add newer entries at the top, list the date and your name with Please add newer entries at the top, list the date and your name with
email address. email address.
2007-Nov-11 UPDATE Dick Hollenbeck <dick@softplc.com>
================================================================================
+ pcbnew
Fixed modedit.cpp bug which occurred when selecting a non pad item (such
as a text field) in the module editor, then selecting Dimensions -> Pad Settings
in the module editor.
2007-Nov-11 UPDATE Geoff Harland <gharlandau@yahoo.com.au> 2007-Nov-11 UPDATE Geoff Harland <gharlandau@yahoo.com.au>
================================================================================ ================================================================================
+ eeschema & pcbnew & gerbview + eeschema & pcbnew & gerbview
@ -1277,7 +1285,6 @@ email address.
incomplete generation of erc file list incomplete generation of erc file list
2007-June-13 UPDATE Richard A Burton <richardaburton@gmail.com> 2007-June-13 UPDATE Richard A Burton <richardaburton@gmail.com>
================================================================================ ================================================================================
+ build: + build:

View File

@ -1,3 +1,4 @@
/****************/ /****************/
/* SELCOLOR.CPP */ /* SELCOLOR.CPP */
/****************/ /****************/

View File

@ -573,8 +573,13 @@ void WinEDA_ModuleEditFrame::Process_Special_Functions( wxCommandEvent& event )
break; break;
case ID_PCB_PAD_SETUP: case ID_PCB_PAD_SETUP:
InstallPadOptionsFrame( (D_PAD*) GetScreen()->GetCurItem(), {
&dc, pos ); BOARD_ITEM* item = GetCurItem();
if( item && item->Type()==TYPEPAD )
InstallPadOptionsFrame( (D_PAD*) item, &dc, pos );
else
InstallPadOptionsFrame( NULL, &dc, pos );
}
break; break;
case ID_PCB_USER_GRID_SETUP: case ID_PCB_USER_GRID_SETUP: