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:
parent
ca7e1d8bd1
commit
317470a39a
1 changed files with 2 additions and 2 deletions
|
|
@ -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 )
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue