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:
parent
bb91aeb64c
commit
1764220deb
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user