]> git.eshelyaron.com Git - emacs.git/commitdiff
(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 fe281082d43bc3453e093049a203e18438c48e68..0f69e754abbce5105cf2f15d7064732d2b26f941 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);