1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-26 10:49:33 +00:00

(smaller_face): Compare font heights with <' and >'

instead of `!='.
This commit is contained in:
Gerd Moellmann 2000-09-07 14:05:23 +00:00
parent dbcee71a27
commit b4c3ca094d

View File

@ -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);