From f79fd1e54b4533507c6de798eecfdde765a3fc4e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Karsten=20Ball=C3=BCder?= Date: Wed, 30 Jun 1999 15:40:00 +0000 Subject: [PATCH] fixed wrong assert git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2939 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/generic/progdlgg.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/generic/progdlgg.cpp b/src/generic/progdlgg.cpp index cad525d1d3..f987808944 100644 --- a/src/generic/progdlgg.cpp +++ b/src/generic/progdlgg.cpp @@ -210,8 +210,8 @@ wxProgressDialog::wxProgressDialog(wxString const &title, bool wxProgressDialog::Update(int value, const wxString& newmsg) { - wxASSERT_MSG( value == -1 || m_gauge, _T("can't update non existent dialog") ); - wxASSERT_MSG( value < m_maximum, _T("invalid progress value") ); + wxASSERT_MSG( value == -1 || m_gauge, _T("cannot update non existent dialog") ); + wxASSERT_MSG( value <= m_maximum, _T("invalid progress value") ); if( m_gauge ) @@ -265,7 +265,7 @@ wxProgressDialog::Update(int value, const wxString& newmsg) // so that we return TRUE below m_state = Finished; } - + wxYield(); return m_state != Canceled; } -- 2.50.0