]> git.saurik.com Git - wxWidgets.git/commitdiff
add a spacer in case the progress dialog is built without labels (elapsed/estimated...
authorFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 26 Jul 2010 10:28:36 +0000 (10:28 +0000)
committerFrancesco Montorsi <f18m_cpp217828@yahoo.it>
Mon, 26 Jul 2010 10:28:36 +0000 (10:28 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65114 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/progdlgg.cpp

index 3c962a0f2e57920a1519adb0880e5c50f9718888..7e0e373f09e421f8c04c6cf4397cddf7e1f985cf 100644 (file)
@@ -245,6 +245,9 @@ wxProgressDialog::wxProgressDialog(const wxString& title,
         buttonSizer->Add(m_btnAbort, 0, sizerFlags, LAYOUT_MARGIN);
     }
 
         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__
 
     sizerTop->Add(buttonSizer, 0, sizerFlags, LAYOUT_MARGIN );
 #endif // __SMARTPHONE__/!__SMARTPHONE__