From cc9787e47a1142c7195f49e3d951a7161b90e353 Mon Sep 17 00:00:00 2001 From: Jon Evans Date: Fri, 19 Mar 2021 19:09:44 -0400 Subject: [PATCH] Make sure space for message is reserved in APP_PROGRESS_DIALOG Fixes https://gitlab.com/kicad/code/kicad/-/issues/7953 --- common/widgets/app_progress_dialog.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/common/widgets/app_progress_dialog.cpp b/common/widgets/app_progress_dialog.cpp index 8a6fa0fcbb..ef25c2599f 100644 --- a/common/widgets/app_progress_dialog.cpp +++ b/common/widgets/app_progress_dialog.cpp @@ -28,7 +28,9 @@ APP_PROGRESS_DIALOG::APP_PROGRESS_DIALOG( const wxString& aTitle, const wxString& aMessage, int aMaximum, wxWindow* aParent, bool aIndeterminateTaskBarStatus, int aStyle ) - : wxProgressDialog( aTitle, aMessage, aMaximum, aParent, aStyle ) + : wxProgressDialog( aTitle, + aMessage == wxEmptyString ? wxT( " " ) : aMessage, + aMaximum, aParent, aStyle ) #if wxCHECK_VERSION( 3, 1, 0 ) , m_appProgressIndicator( aParent, aMaximum ),