projects
/
xboard.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Ignore color arguments not starting with #
[xboard.git]
/
xaw
/
xboard.c
diff --git
a/xaw/xboard.c
b/xaw/xboard.c
index
86d4283
..
b9fb0e1
100644
(file)
--- a/
xaw/xboard.c
+++ b/
xaw/xboard.c
@@
-536,7
+536,7
@@
CreateFonts ()
void
ParseColor (int n, char *name)
{ // in XBoard, just copy the color-name string
- if(colorVariable[n]) *(char**)colorVariable[n] = strdup(name);
+ if(colorVariable[n] && *name == '#') *(char**)colorVariable[n] = strdup(name);
}
char *