From 2a6ae070b419d320f1c4e1b404299c938f90c501 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 25 Aug 2012 19:43:58 +0000 Subject: WinGui: Fix a second Integer overflow. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4917 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3