Eeschema: fixed bug when edit a component reference using the component dialog editor

Code cleaning and using DrawPanel->Refresh() instead of ReDraw() when possible.
This commit is contained in:
charras
2010-01-13 13:43:36 +00:00
parent 3432474c96
commit 6efce74c96
17 changed files with 97 additions and 81 deletions
+3 -3
View File
@@ -436,7 +436,7 @@ void WinEDA_ModuleEditFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
if( GetScreen()->IsRefreshReq() )
{
RedrawActiveWindow( DC, TRUE );
DrawPanel->Refresh( );
// We must return here, instead of proceeding.
// If we let the cursor move during a refresh request,
@@ -515,9 +515,9 @@ void WinEDA_ModuleEditFrame::GeneralControle( wxDC* DC, wxPoint Mouse )
if( GetScreen()->IsRefreshReq() )
{
RedrawActiveWindow( DC, TRUE );
DrawPanel->Refresh( );
wxSafeYield();
}
SetToolbars();
UpdateStatusBar();
}