Use "max" instead of 100 in the progress dialog sample code

No real changes, just don't hardcode 100 as we have a symbolic constant
for it here already.
This commit is contained in:
Vadim Zeitlin
2017-10-29 22:58:57 +01:00
parent ca7e1d8bd1
commit 317470a39a

View File

@@ -2770,8 +2770,8 @@ void MyFrame::DoShowProgress(wxGenericProgressDialog& dialog)
{
i += max/4;
if ( i >= 100 )
i = 99;
if ( i >= max )
i = max - 1;
}
if ( !cont )