diff options
author | sr55 <[email protected]> | 2012-03-20 19:45:32 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-03-20 19:45:32 +0000 |
commit | c780805c26416cf69b034d23179e47f44c8e88f1 (patch) | |
tree | 56d85d69400fe8542f147d6242b298b858fbd58a /win/CS | |
parent | f18e8e29149e801366393ddd92beebde6e3bbb7a (diff) |
WinGui: (WPF) Fix duration display
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4521 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrakeWPF/Helpers/CliCheckHelper.cs | 4 | ||||
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs | 2 |
2 files changed, 1 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Helpers/CliCheckHelper.cs b/win/CS/HandBrakeWPF/Helpers/CliCheckHelper.cs index 3dd9f8ba3..b663cf2bf 100644 --- a/win/CS/HandBrakeWPF/Helpers/CliCheckHelper.cs +++ b/win/CS/HandBrakeWPF/Helpers/CliCheckHelper.cs @@ -30,10 +30,6 @@ namespace HandBrakeWPF.Helpers /// <summary>
/// The check cli version.
/// </summary>
- /// <returns>
- /// Returns True when CLI is unchanged,
- /// False when there is a change
- /// </returns>
public static void CheckCLIVersion()
{
IErrorService errorService = IoC.Get<IErrorService>();
diff --git a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs index c37d36eb8..b2f067670 100644 --- a/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/MainViewModel.cs @@ -1129,7 +1129,7 @@ namespace HandBrakeWPF.ViewModels switch (this.SelectedPointToPoint)
{
case PointToPointMode.Chapters:
- return this.SelectedTitle.CalculateDuration(this.SelectedStartPoint, this.SelectedEndPoint).ToString();
+ return this.SelectedTitle.CalculateDuration(this.SelectedStartPoint -1, this.SelectedEndPoint -1).ToString();
case PointToPointMode.Seconds:
return TimeSpan.FromSeconds(startEndDuration).ToString();
case PointToPointMode.Frames:
|