diff options
| author | Gerd Moellmann | 2000-09-07 14:05:23 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2000-09-07 14:05:23 +0000 |
| commit | b4c3ca094d94372990a5ab7fe66f4daac2c8cf1c (patch) | |
| tree | f7fa437455f0f204c7386a77dd0a4b7c3248e319 /src | |
| parent | dbcee71a279db0f0eab0c56df8f960bd9263de5d (diff) | |
| download | emacs-b4c3ca094d94372990a5ab7fe66f4daac2c8cf1c.tar.gz emacs-b4c3ca094d94372990a5ab7fe66f4daac2c8cf1c.zip | |
(smaller_face): Compare font heights with `<' and `>'
instead of `!='.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 3 |
1 files changed, 2 insertions, 1 deletions
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) | |||
| 5329 | new_face = FACE_FROM_ID (f, new_face_id); | 5329 | new_face = FACE_FROM_ID (f, new_face_id); |
| 5330 | 5330 | ||
| 5331 | /* If height changes, count that as one step. */ | 5331 | /* If height changes, count that as one step. */ |
| 5332 | if (FONT_HEIGHT (new_face->font) != last_height) | 5332 | if ((delta < 0 && FONT_HEIGHT (new_face->font) < last_height) |
| 5333 | || (delta > 0 && FONT_HEIGHT (new_face->font) > last_height)) | ||
| 5333 | { | 5334 | { |
| 5334 | --steps; | 5335 | --steps; |
| 5335 | last_height = FONT_HEIGHT (new_face->font); | 5336 | last_height = FONT_HEIGHT (new_face->font); |