# HG changeset patch # User Richard M. Stallman # Date 862640010 0 # Node ID fa92ac645cf0eefa6c933a0895cf47c4fb33bf5b # Parent 0b6db83d46635229c4da4a21a33bd346a58dac85 (x_set_scroll_bar_width): If arg is too small, round it up. diff -r 0b6db83d4663 -r fa92ac645cf0 src/xfns.c --- a/src/xfns.c Sat May 03 06:12:28 1997 +0000 +++ b/src/xfns.c Sat May 03 06:13:30 1997 +0000 @@ -2004,8 +2004,8 @@ { 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;