Fixed the font-selector demo so that it doesn't crash. The problem
authorRobert Strandh <rstrandh@common-lisp.net>
Tue, 8 Dec 2009 05:26:29 +0000 (05:26 +0000)
committerRobert Strandh <rstrandh@common-lisp.net>
Tue, 8 Dec 2009 05:26:29 +0000 (05:26 +0000)
commitebff70c9f5689d3ae02be0add330726c86f9f399
tree277e91f245d91da0039f4c962227002d7da30bb1
parent1a7b9136ea23cb7fb2efa6287db96258b30cad43
Fixed the font-selector demo so that it doesn't crash.  The problem
was that when the family changes, it tries to initialize the face to
one with the same name as the selected one in the old family.  When
there is no such face in the new family, it got initialized to nil.

However, the demo is still not working properly.  Sometimes a
displayed face becomes non-clickable, and sometimes two faces are
highlighted simultaneously.
Examples/font-selector.lisp