fixed persistent assertion failure in component edit dialog caused by checking always null pointer

This commit is contained in:
Tomasz Wlostowski 2015-02-24 11:15:20 +01:00 committed by Maciej Suminski
parent ede0daf9db
commit 79d9229d86
1 changed files with 2 additions and 2 deletions

View File

@ -187,8 +187,6 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC( wxWindow
m_staticTextUnitPosX->SetLabel( GetAbbreviatedUnitsLabel( g_UserUnit ) );
m_staticTextUnitPosY->SetLabel( GetAbbreviatedUnitsLabel( g_UserUnit ) );
copySelectedFieldToPanel();
wxToolTip::Enable( true );
GetSizer()->SetSizeHints( this );
@ -757,6 +755,8 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::InitBuffers( SCH_COMPONENT* aComponent
// resume editing at the last row edited, last time dialog was up.
setSelectedFieldNdx( s_SelectedRow );
copySelectedFieldToPanel();
}