aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2017-11-19 17:38:39 +0100
committerThomas White <taw@physics.org>2017-11-19 17:38:39 +0100
commite2329566e6d56898fa68cf5269fed82db43d68dd (patch)
tree049d944e7acbe06e8666d9dc3856e447c2433ccb /src
parenta2ad07c74c9e61c16ccc3ade4e6ac536bc221907 (diff)
Don't add empty text blocks
They can creep in sometimes, e.g. just after an image frame is created
Diffstat (limited to 'src')
-rw-r--r--src/sc_interp.c1
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);