summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF/Controls
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-06-14 19:56:44 +0100
committersr55 <[email protected]>2018-06-14 19:56:44 +0100
commit0c377e599c899845712c22da2d3470df98ab14a7 (patch)
tree8543e3612e7ec5db154af415c8db7b9490234363 /win/CS/HandBrakeWPF/Controls
parentcd533d4ae47317ffef69bcea6ec69d2a711b7798 (diff)
WinGui: Fix an integer overflow in the UI layer for the start/stop controls. Fixes #1327
Diffstat (limited to 'win/CS/HandBrakeWPF/Controls')
-rw-r--r--win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs b/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs
index 5f983a699..a8277ec3b 100644
--- a/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs
+++ b/win/CS/HandBrakeWPF/Controls/TimeSpanBox.xaml.cs
@@ -67,7 +67,7 @@ namespace HandBrakeWPF.Controls
/// The number property.
/// </summary>
public static readonly DependencyProperty NumberProperty = DependencyProperty.Register(
- "Number", typeof(int), typeof(TimeSpanBox), new PropertyMetadata(OnNumberChanged));
+ "Number", typeof(long), typeof(TimeSpanBox), new PropertyMetadata(OnNumberChanged));
/// <summary>
/// The show time span property.
@@ -225,11 +225,11 @@ namespace HandBrakeWPF.Controls
/// <summary>
/// Gets or sets the number.
/// </summary>
- public int Number
+ public long Number
{
get
{
- return (int)this.GetValue(NumberProperty);
+ return (long)this.GetValue(NumberProperty);
}
set
@@ -337,7 +337,7 @@ namespace HandBrakeWPF.Controls
/// </summary>
private void DecrementNumber()
{
- int newNumber;
+ long newNumber;
if (this.AllowEmpty && this.Number == 0)
{
newNumber = Math.Min(this.Maximum, -this.Increment);
@@ -416,7 +416,7 @@ namespace HandBrakeWPF.Controls
/// </summary>
private void IncrementNumber()
{
- int newNumber;
+ long newNumber;
if (this.AllowEmpty && this.Number == 0)
{
newNumber = Math.Max(this.Minimum, this.Increment);