From db06693d22b71696bc8878a947f3cab4d42ae108 Mon Sep 17 00:00:00 2001 From: Jeff Young Date: Fri, 24 Dec 2021 00:03:51 +0000 Subject: [PATCH] Be more selective about hiding solder mask. --- pcbnew/board_commit.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pcbnew/board_commit.cpp b/pcbnew/board_commit.cpp index aacc0ff7e6..d39d26ddf3 100644 --- a/pcbnew/board_commit.cpp +++ b/pcbnew/board_commit.cpp @@ -385,11 +385,11 @@ void BOARD_COMMIT::Push( const wxString& aMessage, bool aCreateUndoEntry, bool a connectivity->RecalculateRatsnest( this ); connectivity->ClearDynamicRatsnest(); - if( frame ) - { + if( frame && solderMaskDirty ) frame->HideSolderMask(); + + if( frame ) frame->GetCanvas()->RedrawRatsnest(); - } if( m_changes.size() > num_changes ) {