From b25c407576a0a21ee531c0aaef03a2248b59462c Mon Sep 17 00:00:00 2001 From: Maciej Suminski Date: Wed, 15 Jun 2016 10:15:42 +0200 Subject: [PATCH] Rebuild the old ratsnest model only if GAL is inactive. --- pcbnew/undo_redo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pcbnew/undo_redo.cpp b/pcbnew/undo_redo.cpp index 338885908f..dd72f59416 100644 --- a/pcbnew/undo_redo.cpp +++ b/pcbnew/undo_redo.cpp @@ -549,7 +549,6 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList, bool // Rebuild pointers and ratsnest that can be changed. if( reBuild_ratsnest ) { - Compile_Ratsnest( NULL, true ); if( IsGalCanvasActive() ) { @@ -558,7 +557,10 @@ void PCB_BASE_EDIT_FRAME::PutDataInPreviousState( PICKED_ITEMS_LIST* aList, bool else ratsnest->Recalculate(); } - + else + { + Compile_Ratsnest( NULL, true ); + } } }