]> git.saurik.com Git - wxWidgets.git/blobdiff - src/generic/progdlgg.cpp
Applied patch [ 642157 ] [MSW] HMENU resource leak from wxMenuBar
[wxWidgets.git] / src / generic / progdlgg.cpp
index 169a7ea949460c18a6ecbecbb884f428ba6bfebe..39bb6d1ef836590aada25bf296c93e7884babc6b 100644 (file)
@@ -322,7 +322,7 @@ wxProgressDialog::Update(int value, const wxString& newmsg)
 
     wxASSERT_MSG( value <= m_maximum, wxT("invalid progress value") );
 
-    if ( m_gauge )
+    if ( m_gauge && value < m_maximum )
     {
         m_gauge->SetValue(value + 1);
     }