]> git.saurik.com Git - wxWidgets.git/commitdiff
slightly more intelligent size calculation to prevent clipping of text
authorKarsten Ballüder <ballueder@usa.net>
Fri, 25 Jun 1999 14:02:28 +0000 (14:02 +0000)
committerKarsten Ballüder <ballueder@usa.net>
Fri, 25 Jun 1999 14:02:28 +0000 (14:02 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2891 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/generic/progdlgg.cpp

index 1cdf4a2fd1ba716ff7c77ddaa2990fff8caeadf8..8bb26d9041ad5272e78fe8e32fd73b5c1707756c 100644 (file)
@@ -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);