Rebuild the old ratsnest model only if GAL is inactive.

This commit is contained in:
Maciej Suminski 2016-06-15 10:15:42 +02:00
parent 940765f4b3
commit b25c407576
1 changed files with 4 additions and 2 deletions

View File

@ -549,7 +549,6 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList, bool
// Rebuild pointers and ratsnest that can be changed. // Rebuild pointers and ratsnest that can be changed.
if( reBuild_ratsnest ) if( reBuild_ratsnest )
{ {
Compile_Ratsnest( NULL, true );
if( IsGalCanvasActive() ) if( IsGalCanvasActive() )
{ {
@ -558,7 +557,10 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList, bool
else else
ratsnest->Recalculate(); ratsnest->Recalculate();
} }
else
{
Compile_Ratsnest( NULL, true );
}
} }
} }