diff options
author | sr55 <[email protected]> | 2012-08-25 19:43:58 +0000 |
---|---|---|
committer | sr55 <[email protected]> | 2012-08-25 19:43:58 +0000 |
commit | 2a6ae070b419d320f1c4e1b404299c938f90c501 (patch) | |
tree | ef91c71db07e2e6b9ad65da3b10e489a36d8dd2a /win | |
parent | 220a5d679ca21434fca5fa0d88884a256fe68f16 (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')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 2 |
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);
|