all repos — fluxbox @ eaecf66a232de556ac9003920f1c9694fed0e2c5

custom fork of the fluxbox windowmanager

fixed more checking on the fontstruct
fluxgen fluxgen
commit

eaecf66a232de556ac9003920f1c9694fed0e2c5

parent

fbf610b774107f1139e4b40008b5f2fed611a589

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/DrawUtil.ccsrc/DrawUtil.cc

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: DrawUtil.cc,v 1.6 2002/04/03 23:00:10 fluxgen Exp $ +// $Id: DrawUtil.cc,v 1.7 2002/05/07 08:15:18 fluxgen Exp $ #ifdef HAVE_CONFIG_H # include "config.h"

@@ -82,7 +82,7 @@ XSetBackground(dpy, font_gc, off);

/* load the font ... */ fontstruct = XLoadQueryFont(dpy, fontname); - if (fontstruct == NULL) { + if (fontstruct == 0 || fontstruct->per_char == 0) { cerr<<"Fluxbox::DrawUtil: No font"<<endl; return 0; }