quick bugfix to progress bar
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@712
b64f7644-9d1e-0410-96f1-
a4d463321fa5
this.BeginInvoke(new Parsing.ScanProgressEventHandler(Parser_OnScanProgress), new object[] { Sender, CurrentTitle, TitleCount });\r
return;\r
}\r
- this.scanProgress.Value = Convert.ToInt32(Convert.ToDouble(CurrentTitle) / Convert.ToDouble(TitleCount) * 100) + 1;\r
+ int progress = Convert.ToInt32(Convert.ToDouble(CurrentTitle) / Convert.ToDouble(TitleCount) * 100) + 1;\r
+ if (progress > 100)\r
+ {\r
+ progress = 100;\r
+ }\r
+ this.scanProgress.Value = progress;\r
}\r
\r
}\r