]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/progdlgg.cpp
centralized the handling of border styles; added borders support for wxListBox and...
[wxWidgets.git] / src / generic / progdlgg.cpp
index e623577737e11d65b4a6b05d8939e24d7eb91e8e..c261d63be45df5eac446c180fa214d1935fdad83 100644 (file)
@@ -141,7 +141,7 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
 
     wxClientDC dc(this);
     dc.SetFont(wxSystemSettings::GetFont(wxSYS_DEFAULT_GUI_FONT));
-    long widthText;
+    long widthText = 0;
     dc.GetTextExtent(message, &widthText, NULL, NULL, NULL, NULL);
 
     wxBoxSizer *sizer = new wxBoxSizer(wxVERTICAL);