diff options
author | jstebbins <[email protected]> | 2009-11-15 20:47:27 +0000 |
---|---|---|
committer | jstebbins <[email protected]> | 2009-11-15 20:47:27 +0000 |
commit | 5cab7367b73e30517b4a2772e144e3a12c749c3b (patch) | |
tree | 4dafe9187e1d4564003d8a7d43ecdf92b2a470a0 /gtk/src | |
parent | 655a0a9d696d3dbfcb66bb45b7581dbb6276dcda (diff) |
LinGui: place limits on crop to prevent creating images sizes that are not supported
and cause a segfault
git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2937 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'gtk/src')
-rw-r--r-- | gtk/src/callbacks.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/src/callbacks.c b/gtk/src/callbacks.c index ea93955fe..532ac697c 100644 --- a/gtk/src/callbacks.c +++ b/gtk/src/callbacks.c @@ -1360,12 +1360,12 @@ show_title_info(signal_user_data_t *ud, ghb_title_info_t *tinfo) // Set the limits of cropping. hb_set_anamorphic_size crashes if // you pass it a cropped width or height == 0. gint bound; - bound = tinfo->height / 2 - 2; + bound = tinfo->height / 2 - 8; widget = GHB_WIDGET (ud->builder, "PictureTopCrop"); gtk_spin_button_set_range (GTK_SPIN_BUTTON(widget), 0, bound); widget = GHB_WIDGET (ud->builder, "PictureBottomCrop"); gtk_spin_button_set_range (GTK_SPIN_BUTTON(widget), 0, bound); - bound = tinfo->width / 2 - 2; + bound = tinfo->width / 2 - 8; widget = GHB_WIDGET (ud->builder, "PictureLeftCrop"); gtk_spin_button_set_range (GTK_SPIN_BUTTON(widget), 0, bound); widget = GHB_WIDGET (ud->builder, "PictureRightCrop"); |