(smaller_face): Compare font heights with `<' and `>'
authorGerd Moellmann <gerd@gnu.org>
Thu, 7 Sep 2000 14:05:23 +0000 (14:05 +0000)
committerGerd Moellmann <gerd@gnu.org>
Thu, 7 Sep 2000 14:05:23 +0000 (14:05 +0000)
instead of `!='.

src/xfaces.c

index fe28108..0f69e75 100644 (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);