X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=lisp%2Fmsw-font-menu.el;h=194e6cdd291d1f07b816cddbe17936173720867d;hb=56651b04f5a5a0f2b82f68cf092e34422782a0c8;hp=5b97f332f7332d2cfe029754d7745e941f67189b;hpb=98a6e4055a1fa624c592ac06f79287d55196ca37;p=chise%2Fxemacs-chise.git.1 diff --git a/lisp/msw-font-menu.el b/lisp/msw-font-menu.el index 5b97f33..194e6cd 100644 --- a/lisp/msw-font-menu.el +++ b/lisp/msw-font-menu.el @@ -176,13 +176,13 @@ or if you change your font path, you can call this to re-initialize the menus." (when (string-match mswindows-font-regexp name) (setq weight (match-string 2 name)) - (setq size (string-to-int (match-string 4 name)))) + (setq size (string-to-int (or (match-string 4 name) "0")))) (when (string-match mswindows-font-regexp truename) (when (not (member weight (aref entry 1))) (setq weight (match-string 2 truename))) (when (not (member size (aref entry 2))) - (setq size (string-to-int (match-string 4 truename)))) + (setq size (string-to-int (or (match-string 4 truename) "0")))) (setq slant (match-string 5 truename))) (vector entry family size weight slant)))