Commit 562f26dd authored by Andrey Fedorushkov's avatar Andrey Fedorushkov

pcbnew: fix very slowly hands place module at ratsnest visible off

parent 3c6c7134
...@@ -478,8 +478,9 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module, ...@@ -478,8 +478,9 @@ void WinEDA_BasePcbFrame::Place_Module( MODULE* module,
DrawPanel->ManageCurseur = NULL; DrawPanel->ManageCurseur = NULL;
DrawPanel->ForceCloseManageCurseur = NULL; DrawPanel->ForceCloseManageCurseur = NULL;
if( !aDoNotRecreateRatsnest ) if( GetBoard()->IsElementVisible( RATSNEST_VISIBLE ) )
Compile_Ratsnest( DC, true ); if( !aDoNotRecreateRatsnest )
Compile_Ratsnest( DC, true );
if( DC ) if( DC )
DrawPanel->Refresh(); DrawPanel->Refresh();
...@@ -541,7 +542,8 @@ void WinEDA_BasePcbFrame::Rotate_Module( wxDC* DC, MODULE* module, ...@@ -541,7 +542,8 @@ void WinEDA_BasePcbFrame::Rotate_Module( wxDC* DC, MODULE* module,
{ {
// not beiing moved: redraw the module and update ratsnest // not beiing moved: redraw the module and update ratsnest
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
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment