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:
@@ -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 )
|
||||
|
Reference in New Issue
Block a user