summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsr55 <[email protected]>2012-08-25 19:42:49 +0000
committersr55 <[email protected]>2012-08-25 19:42:49 +0000
commit220a5d679ca21434fca5fa0d88884a256fe68f16 (patch)
treefbc8dd3e70ef727f4f6790de04c89b8cdfebd9e9
parent5c878c4eab2f01acc386165fca26d2f3ef943b77 (diff)
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
-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 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);