]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/progdlgg.cpp
Themes crash fix.
[wxWidgets.git] / src / generic / progdlgg.cpp
index 812b9a7e8c1158b02890c5e243f715b83802f084..ca8ae78b8a33f6b1524497cacd9372f658724147 100644 (file)
@@ -169,7 +169,6 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
     {
         // set it to the current time
         m_timeStart = wxGetCurrentTime();
-
         sizeDlg.y += nTimeLabels * (sizeLabel.y + LAYOUT_Y_MARGIN);
     }
 
@@ -203,7 +202,7 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
     sizeDlg.y += 2*LAYOUT_Y_MARGIN;
 
     // try to make the dialog not square but rectangular of reasonabel width
-    sizeDlg.x = wxMax(widthText, 4*sizeDlg.y/3);
+    sizeDlg.x = (wxCoord)wxMax(widthText, 4*sizeDlg.y/3);
     sizeDlg.x *= 3;
     sizeDlg.x /= 2;
     SetClientSize(sizeDlg);