Bug in modedit (solved): last changes.

This commit is contained in:
charras 2008-09-22 05:41:37 +00:00
parent 2ea76d3132
commit fcb2743812
2 changed files with 8 additions and 2 deletions

View File

@ -5,6 +5,12 @@ 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.
2008-Sep-17 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================
+pcbnew:
Fixed a bug in modedit which crashes pcbnew when closing the properties module dialog
Both in trunk and tagged versions
2008-Sep-17 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr> 2008-Sep-17 UPDATE Jean-Pierre Charras <jean-pierre.charras@inpg.fr>
================================================================================ ================================================================================

View File

@ -168,8 +168,6 @@ void WinEDA_ModulePropertiesFrame::BuildPanelModuleProperties( bool FullOptions
wxBoxSizer* PropLeftSizer; wxBoxSizer* PropLeftSizer;
wxBoxSizer* PropRightSizer; wxBoxSizer* PropRightSizer;
wxString msg; wxString msg;
wxStaticText* XPositionStatic = new wxStaticText(m_PanelProperties, -1, _("X"));
wxStaticText* YPositionStatic = new wxStaticText(m_PanelProperties, -1, _("Y"));
m_ModPositionX = NULL; m_ModPositionX = NULL;
m_ModPositionY = NULL; m_ModPositionY = NULL;
@ -183,6 +181,8 @@ void WinEDA_ModulePropertiesFrame::BuildPanelModuleProperties( bool FullOptions
if( FullOptions ) // Module is on a board if( FullOptions ) // Module is on a board
{ {
wxStaticText* XPositionStatic = new wxStaticText(m_PanelProperties, -1, _("X"));
wxStaticText* YPositionStatic = new wxStaticText(m_PanelProperties, -1, _("Y"));
Button = new wxButton( m_PanelProperties, ID_MODULE_PROPERTIES_EXCHANGE, Button = new wxButton( m_PanelProperties, ID_MODULE_PROPERTIES_EXCHANGE,
_( "Change module(s)" ) ); _( "Change module(s)" ) );
Button->SetForegroundColour( wxColor( 80, 40, 0 ) ); Button->SetForegroundColour( wxColor( 80, 40, 0 ) );