Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
e6cb3cf5
Commit
e6cb3cf5
authored
Jun 03, 2008
by
Kenichi Handa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(font_parse_fcname): Fix handling of unknown key.
parent
9d3d42fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/font.c
src/font.c
+4
-2
No files found.
src/font.c
View file @
e6cb3cf5
...
@@ -1406,6 +1406,8 @@ font_parse_fcname (name, font)
...
@@ -1406,6 +1406,8 @@ font_parse_fcname (name, font)
}
}
else
else
{
{
char
*
keyhead
=
p0
;
if
(
memcmp
(
p0
+
1
,
"pixelsize="
,
10
)
==
0
)
if
(
memcmp
(
p0
+
1
,
"pixelsize="
,
10
)
==
0
)
prop
=
FONT_SIZE_INDEX
;
prop
=
FONT_SIZE_INDEX
;
else
else
...
@@ -1423,8 +1425,8 @@ font_parse_fcname (name, font)
...
@@ -1423,8 +1425,8 @@ font_parse_fcname (name, font)
else
if
(
prop
>=
0
)
else
if
(
prop
>=
0
)
Ffont_put
(
font
,
key
,
val
);
Ffont_put
(
font
,
key
,
val
);
else
else
bcopy
(
p0
-
1
,
copy
,
p1
-
p0
+
1
);
bcopy
(
keyhead
,
copy
,
p1
-
keyhead
);
copy
+=
p1
-
p0
+
1
;
copy
+=
p1
-
keyhead
;
}
}
}
}
p0
=
p1
;
p0
=
p1
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment