Make sure space for message is reserved in APP_PROGRESS_DIALOG

Fixes https://gitlab.com/kicad/code/kicad/-/issues/7953
This commit is contained in:
Jon Evans 2021-03-19 19:09:44 -04:00
parent 812d38736e
commit cc9787e47a
1 changed files with 3 additions and 1 deletions

View File

@ -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 ),