pcbnew: fix slowly module change at ratsnest invisible
This commit is contained in:
parent
8fc11e3b45
commit
9afa89261f
|
@ -325,7 +325,8 @@ bool WinEDA_PcbFrame::Delete_Module( MODULE* module,
|
||||||
module->SetState( DELETED, ON );
|
module->SetState( DELETED, ON );
|
||||||
SaveCopyInUndoList( module, UR_DELETED );
|
SaveCopyInUndoList( module, UR_DELETED );
|
||||||
|
|
||||||
Compile_Ratsnest( DC, true );
|
if( DC && GetBoard()->IsElementVisible( RATSNEST_VISIBLE ) )
|
||||||
|
Compile_Ratsnest( DC, true );
|
||||||
|
|
||||||
// Redraw the full screen to ensure perfect display of board and ratsnest.
|
// Redraw the full screen to ensure perfect display of board and ratsnest.
|
||||||
if( DC )
|
if( DC )
|
||||||
|
@ -393,7 +394,8 @@ void WinEDA_PcbFrame::Change_Side_Module( MODULE* Module, wxDC* DC )
|
||||||
if( DC )
|
if( DC )
|
||||||
{
|
{
|
||||||
Module->Draw( DrawPanel, DC, GR_OR );
|
Module->Draw( DrawPanel, DC, GR_OR );
|
||||||
Compile_Ratsnest( DC, true );
|
if( GetBoard()->IsElementVisible( RATSNEST_VISIBLE ) )
|
||||||
|
Compile_Ratsnest( DC, true );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -244,7 +244,8 @@ void DIALOG_EXCHANGE_MODULE::Change_Module()
|
||||||
|
|
||||||
if( Change_1_Module( m_CurrentModule, newmodulename, &pickList, true ) )
|
if( Change_1_Module( m_CurrentModule, newmodulename, &pickList, true ) )
|
||||||
{
|
{
|
||||||
m_Parent->Compile_Ratsnest( NULL, true );
|
if( m_Parent->GetBoard()->IsElementVisible( RATSNEST_VISIBLE ) )
|
||||||
|
m_Parent->Compile_Ratsnest( NULL, true );
|
||||||
m_Parent->DrawPanel->Refresh();
|
m_Parent->DrawPanel->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -325,7 +326,8 @@ void DIALOG_EXCHANGE_MODULE::Change_ModuleId( bool aUseValue )
|
||||||
|
|
||||||
if( change )
|
if( change )
|
||||||
{
|
{
|
||||||
m_Parent->Compile_Ratsnest( NULL, true );
|
if( m_Parent->GetBoard()->IsElementVisible( RATSNEST_VISIBLE ) )
|
||||||
|
m_Parent->Compile_Ratsnest( NULL, true );
|
||||||
m_Parent->DrawPanel->Refresh();
|
m_Parent->DrawPanel->Refresh();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -374,7 +376,8 @@ void DIALOG_EXCHANGE_MODULE::Change_ModuleAll()
|
||||||
|
|
||||||
if( change )
|
if( change )
|
||||||
{
|
{
|
||||||
m_Parent->Compile_Ratsnest( NULL, true );
|
if( m_Parent->GetBoard()->IsElementVisible( RATSNEST_VISIBLE ) )
|
||||||
|
m_Parent->Compile_Ratsnest( NULL, true );
|
||||||
m_Parent->DrawPanel->Refresh();
|
m_Parent->DrawPanel->Refresh();
|
||||||
}
|
}
|
||||||
if( pickList.GetCount() )
|
if( pickList.GetCount() )
|
||||||
|
|
Loading…
Reference in New Issue