]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/progdlgg.cpp
compilation fix for non-threaded compilation (threads are still broken
[wxWidgets.git] / src / generic / progdlgg.cpp
index 99126cbffa3c6b2527bb0ecc5598800e6c2204f0..ca8ae78b8a33f6b1524497cacd9372f658724147 100644 (file)
@@ -202,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.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);
     sizeDlg.x *= 3;
     sizeDlg.x /= 2;
     SetClientSize(sizeDlg);