From: Francesco Montorsi Date: Mon, 26 Jul 2010 10:28:36 +0000 (+0000) Subject: add a spacer in case the progress dialog is built without labels (elapsed/estimated... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/6333ffcca027caa11a18560219a3f8a3b97e59b8?ds=inline add a spacer in case the progress dialog is built without labels (elapsed/estimated/remaining) time nor buttons git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 3c962a0f2e..7e0e373f09 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -245,6 +245,9 @@ wxProgressDialog::wxProgressDialog(const wxString& title, buttonSizer->Add(m_btnAbort, 0, sizerFlags, LAYOUT_MARGIN); } + if (!m_hasSkipButton && !m_hasAbortButton) + buttonSizer->AddSpacer(LAYOUT_MARGIN); + sizerTop->Add(buttonSizer, 0, sizerFlags, LAYOUT_MARGIN ); #endif // __SMARTPHONE__/!__SMARTPHONE__