From a4879e740af006990d5b25396ec20572f041286f Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Wed, 9 Dec 2020 21:14:29 -0500 Subject: [PATCH] Don't request a full frame refresh when editing text properties (stop apperance flickering) Seems like dead code, the commit should trigger just a canvas refresh. --- pcbnew/dialogs/dialog_text_properties.cpp | 1 - pcbnew/edit.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pcbnew/dialogs/dialog_text_properties.cpp b/pcbnew/dialogs/dialog_text_properties.cpp index 2d339ae313..64774e3b39 100644 --- a/pcbnew/dialogs/dialog_text_properties.cpp +++ b/pcbnew/dialogs/dialog_text_properties.cpp @@ -393,7 +393,6 @@ bool DIALOG_TEXT_PROPERTIES::TransferDataFromWindow() default: break; } - m_Parent->Refresh(); if( pushCommit ) commit.Push( _( "Change text properties" ) ); diff --git a/pcbnew/edit.cpp b/pcbnew/edit.cpp index cecd936645..75c8d0b8c4 100644 --- a/pcbnew/edit.cpp +++ b/pcbnew/edit.cpp @@ -123,7 +123,8 @@ void PCB_EDIT_FRAME::OnEditItemRequest( BOARD_ITEM* aItem ) { switch( aItem->Type() ) { - case PCB_TEXT_T:ShowTextPropertiesDialog( aItem ); + case PCB_TEXT_T: + ShowTextPropertiesDialog( aItem ); break; case PCB_PAD_T: