From: Karsten Ballüder Date: Fri, 25 Jun 1999 14:02:28 +0000 (+0000) Subject: slightly more intelligent size calculation to prevent clipping of text X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2d17a4e2f1da0da3671c888f23ec68facb5074ef slightly more intelligent size calculation to prevent clipping of text git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index 1cdf4a2fd1..8bb26d9041 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -114,7 +114,8 @@ wxProgressDialog::wxProgressDialog(wxString const &title, Fit(); // and set the width from it wxSize size = GetClientSize(); - SetClientSize(2*size.y, size.y); + if(size.x < 2*size.y) + SetClientSize(2*size.y, size.y); Show(TRUE); Centre(wxCENTER_FRAME | wxBOTH);