don't crash when wordlist provides no bitmap

This commit is contained in:
Eric House 2020-04-23 21:57:59 -07:00
parent d01fd5de1c
commit f35136099d

View file

@ -779,7 +779,7 @@ gtkDrawTileImpl( DrawCtx* p_dctx, const XP_Rect* rect, const XP_UCHAR* textP,
formatRect.width -= 6;
if ( notEmpty ) {
if ( !!bitmaps ) {
if ( !!bitmaps && !!bitmaps->bmps[1] ) {
drawBitmapFromLBS( dctx, bitmaps->bmps[1], &insetR );
} else if ( !!textP ) {
if ( *textP != LETTER_NONE ) { /* blank */