mirror of
git://xwords.git.sourceforge.net/gitroot/xwords/xwords
synced 2025-02-12 08:47:50 +01:00
don't crash when wordlist provides no bitmap
This commit is contained in:
parent
d01fd5de1c
commit
f35136099d
1 changed files with 1 additions and 1 deletions
|
@ -779,7 +779,7 @@ gtkDrawTileImpl( DrawCtx* p_dctx, const XP_Rect* rect, const XP_UCHAR* textP,
|
||||||
formatRect.width -= 6;
|
formatRect.width -= 6;
|
||||||
|
|
||||||
if ( notEmpty ) {
|
if ( notEmpty ) {
|
||||||
if ( !!bitmaps ) {
|
if ( !!bitmaps && !!bitmaps->bmps[1] ) {
|
||||||
drawBitmapFromLBS( dctx, bitmaps->bmps[1], &insetR );
|
drawBitmapFromLBS( dctx, bitmaps->bmps[1], &insetR );
|
||||||
} else if ( !!textP ) {
|
} else if ( !!textP ) {
|
||||||
if ( *textP != LETTER_NONE ) { /* blank */
|
if ( *textP != LETTER_NONE ) { /* blank */
|
||||||
|
|
Loading…
Add table
Reference in a new issue