From 220a5d679ca21434fca5fa0d88884a256fe68f16 Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 25 Aug 2012 19:42:49 +0000 Subject: WinGui: Fix an Integer overflow in the picture settings panel. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@4916 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win/CS') diff --git a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs index ab7415c66..0c492b138 100644 --- a/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/PictureSettingsViewModel.cs @@ -1064,7 +1064,7 @@ namespace HandBrakeWPF.ViewModels double newHeight = ((double)this.Width * this.sourceResolution.Width * this.SourceAspect.Height * crop_height) / - (this.sourceResolution.Height * this.SourceAspect.Width * crop_width); + ((double)this.sourceResolution.Height * this.SourceAspect.Width * crop_width); this.Task.Height = (int)Math.Round(this.GetModulusValue(newHeight), 0); this.NotifyOfPropertyChange(() => this.Height); -- cgit v1.2.3