projects
/
m17n
/
m17n-lib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d87115
)
(mfont_list): Fix for the case that FONT is NULL.
author
handa
<handa>
Fri, 18 Nov 2005 10:47:16 +0000
(10:47 +0000)
committer
handa
<handa>
Fri, 18 Nov 2005 10:47:16 +0000
(10:47 +0000)
src/font.c
patch
|
blob
|
history
diff --git
a/src/font.c
b/src/font.c
index
2bff416
..
3bb5c99
100644
(file)
--- a/
src/font.c
+++ b/
src/font.c
@@
-2789,8
+2789,13
@@
mfont_list (MFrame *frame, MFont *font, MSymbol language, int maxnum)
MPlist *plist, *pl;
MFontList *font_list;
int i;
- MFont spec = *font;
+ MFont spec;
+ if (font)
+ spec = *font;
+ else
+ MFONT_INIT (&spec);
+
if (spec.size < 0)
{
double pt = - spec.size;