From b60acbb6353933d68496ea5e3921825b281eed4e Mon Sep 17 00:00:00 2001 From: jean-pierre charras <jp.charras@wanadoo.fr> Date: Thu, 17 Oct 2024 10:02:36 +0200 Subject: [PATCH] pagelayout_editor: lock panel update during widgets rebuild. The rebuild is much faster. --- pagelayout_editor/dialogs/properties_frame.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pagelayout_editor/dialogs/properties_frame.cpp b/pagelayout_editor/dialogs/properties_frame.cpp index cdc3153d41..9f741d0592 100644 --- a/pagelayout_editor/dialogs/properties_frame.cpp +++ b/pagelayout_editor/dialogs/properties_frame.cpp @@ -40,7 +40,7 @@ #include "tools/pl_selection_tool.h" #include <dialogs/html_message_box.h> - +#include <wx/wupdlock.h> /** * Minimum drawing sheet text default size in millmeters from #PROPERTIES_FRAME. @@ -230,6 +230,9 @@ void PROPERTIES_FRAME::CopyPrmsFromItemToPanel( DS_DATA_ITEM* aItem ) return; } + // No not update display during rebuild: + wxWindowUpdateLocker noUpdates( this ); + wxString msg; // Set parameters common to all DS_DATA_ITEM types