From: Richard M. Stallman Date: Sat, 3 May 1997 06:13:30 +0000 (+0000) Subject: (x_set_scroll_bar_width): If arg is too small, round it up. X-Git-Tag: emacs-20.1~2316 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=09d8c7ac8beccb901052580a4522ce476bd982d2;p=emacs.git (x_set_scroll_bar_width): If arg is too small, round it up. --- diff --git a/src/xfns.c b/src/xfns.c index 345f2f14c7d..56ec4455c7f 100644 --- a/src/xfns.c +++ b/src/xfns.c @@ -2004,8 +2004,8 @@ x_set_scroll_bar_width (f, arg, oldval) { int wid = FONT_WIDTH (f->output_data.x->font); - if (XFASTINT (arg) < 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM) - Fsignal (Qargs_out_of_range, Fcons (arg, Qnil)); + if (XFASTINT (arg) <= 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM) + XSETINT (arg, 2 * VERTICAL_SCROLL_BAR_WIDTH_TRIM + 1); FRAME_SCROLL_BAR_PIXEL_WIDTH (f) = XFASTINT (arg); FRAME_SCROLL_BAR_COLS (f) = (XFASTINT (arg) + wid-1) / wid;