From 2d17a4e2f1da0da3671c888f23ec68facb5074ef Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Fri, 25 Jun 1999 14:02:28 +0000 Subject: [PATCH] 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 --- src/generic/progdlgg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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); -- 2.50.0