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;
|
i += max/4;
|
||||||
|
|
||||||
if ( i >= 100 )
|
if ( i >= max )
|
||||||
i = 99;
|
i = max - 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( !cont )
|
if ( !cont )
|
||||||
|
Reference in New Issue
Block a user