Minor fixes.
This commit is contained in:
parent
785638a396
commit
377942ed2a
|
@ -157,11 +157,13 @@ void SCH_EDIT_FRAME::EditComponent( SCH_COMPONENT* aComponent )
|
|||
// quasimodal mode for the quasimodal frame support to work. So don't use
|
||||
// the QUASIMODAL macros here.
|
||||
int ret = dlg->ShowQuasiModal();
|
||||
(void) ret; // not used. Make coverity and static analysers quiet.
|
||||
|
||||
m_canvas->SetIgnoreMouseEvents( false );
|
||||
m_canvas->MoveCursorToCrossHair();
|
||||
dlg->Destroy();
|
||||
|
||||
if( ret == wxID_OK )
|
||||
GetCanvas()->Refresh();
|
||||
}
|
||||
|
||||
|
||||
|
@ -199,8 +201,6 @@ DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::DIALOG_EDIT_COMPONENT_IN_SCHEMATIC( wxWindow
|
|||
|
||||
void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnListItemDeselected( wxListEvent& event )
|
||||
{
|
||||
DBG( printf( "OnListItemDeselected()\n" ); )
|
||||
|
||||
if( !m_skipCopyFromPanel )
|
||||
{
|
||||
if( !copyPanelToSelectedField() )
|
||||
|
@ -459,7 +459,6 @@ void DIALOG_EDIT_COMPONENT_IN_SCHEMATIC::OnOKButtonClick( wxCommandEvent& event
|
|||
|
||||
m_parent->OnModify();
|
||||
m_parent->GetScreen()->TestDanglingEnds();
|
||||
m_parent->GetCanvas()->Refresh( true );
|
||||
|
||||
EndQuasiModal( wxID_OK );
|
||||
}
|
||||
|
|
|
@ -281,12 +281,6 @@ int ProcessExecute( const wxString& aCommandLine, int aFlags = wxEXEC_ASYNC,
|
|||
wxProcess *callback = NULL );
|
||||
|
||||
|
||||
/*******************/
|
||||
/* about_kicad.cpp */
|
||||
/*******************/
|
||||
void InitKiCadAbout( wxAboutDialogInfo& info );
|
||||
|
||||
|
||||
/**************/
|
||||
/* common.cpp */
|
||||
/**************/
|
||||
|
|
|
@ -239,7 +239,7 @@ void DIALOG_SET_GRID::OnOkClick( wxCommandEvent& event )
|
|||
|
||||
if( !success )
|
||||
{
|
||||
wxMessageBox( wxString::Format( _( "Incorrect grid origin (size must be >= %.3f and <= %.f mm)" ),
|
||||
wxMessageBox( wxString::Format( _( "Incorrect grid origin (coordinates must be >= %.3f mm and <= %.3f mm)" ),
|
||||
-MAX_GRID_OFFSET/IU_PER_MM, MAX_GRID_OFFSET/IU_PER_MM ) );
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue