From b4c3ca094d94372990a5ab7fe66f4daac2c8cf1c Mon Sep 17 00:00:00 2001 From: Gerd Moellmann Date: Thu, 7 Sep 2000 14:05:23 +0000 Subject: [PATCH] (smaller_face): Compare font heights with `<' and `>' instead of `!='. --- src/xfaces.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xfaces.c b/src/xfaces.c index fe281082d43..0f69e754abb 100644 --- a/src/xfaces.c +++ b/src/xfaces.c @@ -5329,7 +5329,8 @@ smaller_face (f, face_id, steps) new_face = FACE_FROM_ID (f, new_face_id); /* If height changes, count that as one step. */ - if (FONT_HEIGHT (new_face->font) != last_height) + if ((delta < 0 && FONT_HEIGHT (new_face->font) < last_height) + || (delta > 0 && FONT_HEIGHT (new_face->font) > last_height)) { --steps; last_height = FONT_HEIGHT (new_face->font);