diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index e61586b2c9..f1a6fcc365 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -765,8 +765,17 @@ void wxGenericProgressDialog::UpdateMessage(const wxString &newmsg) { if ( !newmsg.empty() && newmsg != m_msg->GetLabel() ) { + const wxSize sizeOld = m_msg->GetSize(); + m_msg->SetLabel(newmsg); + if ( m_msg->GetSize().x > sizeOld.x ) + { + // Resize the dialog to fit its new, longer contents instead of + // just truncating it. + Fit(); + } + // allow the window to repaint: // NOTE: since we yield only for UI events with this call, there // should be no side-effects