diff options
author | brianmario <[email protected]> | 2007-07-18 19:29:07 +0000 |
---|---|---|
committer | brianmario <[email protected]> | 2007-07-18 19:29:07 +0000 |
commit | b36c2befd3795caf8b54fabec67d071a5ccfd74f (patch) | |
tree | b956558b7e9cd19ffa1082bddbbe1a23ce0e650e /win/C# | |
parent | a86e63089a22839b51890db36481c88e25a0a0c6 (diff) |
WinGui:
quick bugfix to progress bar
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@712 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r-- | win/C#/frmReadDVD.cs | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/win/C#/frmReadDVD.cs b/win/C#/frmReadDVD.cs index eaecf823f..c8103c348 100644 --- a/win/C#/frmReadDVD.cs +++ b/win/C#/frmReadDVD.cs @@ -80,7 +80,12 @@ namespace Handbrake this.BeginInvoke(new Parsing.ScanProgressEventHandler(Parser_OnScanProgress), new object[] { Sender, CurrentTitle, TitleCount });
return;
}
- this.scanProgress.Value = Convert.ToInt32(Convert.ToDouble(CurrentTitle) / Convert.ToDouble(TitleCount) * 100) + 1;
+ int progress = Convert.ToInt32(Convert.ToDouble(CurrentTitle) / Convert.ToDouble(TitleCount) * 100) + 1;
+ if (progress > 100)
+ {
+ progress = 100;
+ }
+ this.scanProgress.Value = progress;
}
}
|