From 60452a0c3df0983f381ded76e95de254e57d86a6 Mon Sep 17 00:00:00 2001 From: handa Date: Wed, 24 Aug 2005 05:41:08 +0000 Subject: [PATCH] Fix handling of ratio. --- src/face.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/face.c b/src/face.c index 931ec39..36ce285 100644 --- a/src/face.c +++ b/src/face.c @@ -645,14 +645,16 @@ mface__realize (MFrame *frame, MFace **faces, int num, int size, MFont *font) mplist_push (faces[i]->frame_list, Mt, frame); if ((int) merged_face.property[MFACE_SIZE] < 0 - || (int) merged_face.property[MFACE_RATIO] != 100) + || (merged_face.property[MFACE_RATIO] + && (int) merged_face.property[MFACE_RATIO] != 100)) { double font_size = (int) merged_face.property[MFACE_SIZE]; int ifont_size; if (font_size < 0) font_size = - font_size * frame->dpi / 72.27; - if ((int) merged_face.property[MFACE_RATIO] != 100) + if (merged_face.property[MFACE_RATIO] + && (int) merged_face.property[MFACE_RATIO] != 100) { font_size *= (int) merged_face.property[MFACE_RATIO]; font_size /= 100; -- 1.7.10.4