diff options
author | Thomas White <taw@physics.org> | 2017-11-19 17:38:39 +0100 |
---|---|---|
committer | Thomas White <taw@physics.org> | 2017-11-19 17:38:39 +0100 |
commit | e2329566e6d56898fa68cf5269fed82db43d68dd (patch) | |
tree | 049d944e7acbe06e8666d9dc3856e447c2433ccb | |
parent | a2ad07c74c9e61c16ccc3ade4e6ac536bc221907 (diff) |
Don't add empty text blocks
They can creep in sometimes, e.g. just after an image frame is created
-rw-r--r-- | src/sc_interp.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sc_interp.c b/src/sc_interp.c index fd62c46..b4ec7cd 100644 --- a/src/sc_interp.c +++ b/src/sc_interp.c @@ -908,6 +908,7 @@ static int add_text(struct frame *fr, PangoContext *pc, SCBlock *bl, /* Empty block? */ if ( text == NULL ) return 1; + if ( strlen(text) == 0 ) return 1; fontdesc = sc_interp_get_fontdesc(scin); col = sc_interp_get_fgcol(scin); |