1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-14 06:42:58 +08:00

lv_txt set word width to 0 when not returning a word in lv_txt_get_next_word

This commit is contained in:
Brian Pugh 2019-11-11 21:18:32 -08:00
parent bb91aeb64c
commit 1764220deb

View File

@ -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
}