summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-08-25 19:43:58 +0000
committersr55 <[email protected]>2012-08-25 19:43:58 +0000
commit2a6ae070b419d320f1c4e1b404299c938f90c501 (patch)
treeef91c71db07e2e6b9ad65da3b10e489a36d8dd2a /win/CS
parent220a5d679ca21434fca5fa0d88884a256fe68f16 (diff)
WinGui: Fix a second Integer overflow.
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4917 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
index 0c492b138..2c879ff58 100644
--- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
+++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs
@@ -1004,7 +1004,7 @@ namespace HandBrakeWPF.ViewModels
double new_width = ((double)this.Height * this.sourceResolution.Height * this.SourceAspect.Width *
crop_width) /
- (this.sourceResolution.Width * this.SourceAspect.Height * crop_height);
+ ((double)this.sourceResolution.Width * this.SourceAspect.Height * crop_height);
this.Task.Width = (int)Math.Round(this.GetModulusValue(new_width), 0);
this.NotifyOfPropertyChange(() => this.Task.Width);