From 1764220debcc0c4be856483f655834bd3f7d8e53 Mon Sep 17 00:00:00 2001 From: Brian Pugh Date: Mon, 11 Nov 2019 21:18:32 -0800 Subject: [PATCH] lv_txt set word width to 0 when not returning a word in lv_txt_get_next_word --- src/lv_misc/lv_txt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lv_misc/lv_txt.c b/src/lv_misc/lv_txt.c index 40d579ef7..a19a5ab44 100644 --- a/src/lv_misc/lv_txt.c +++ b/src/lv_misc/lv_txt.c @@ -263,6 +263,7 @@ static uint16_t lv_txt_get_next_word(const char * txt, const lv_font_t * font, return i; #else (void) break_letter_count; + if(word_w_ptr != NULL) *word_w_ptr = 0; /* Return no word */ return 0; #endif }