fix of previous commit

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6513 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík 2000-03-07 21:32:40 +00:00
parent 70a5b429e7
commit 96becbd8fa

View File

@ -86,6 +86,8 @@ wxProgressDialog::wxProgressDialog(wxString const &title,
int style)
: wxDialog(parent, -1, title)
{
m_windowStyle |= style;
bool hasAbortButton = (style & wxPD_CAN_ABORT) != 0;
m_state = hasAbortButton ? Continue : Uncancelable;
m_maximum = maximum;