mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +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;
|
return i;
|
||||||
#else
|
#else
|
||||||
(void) break_letter_count;
|
(void) break_letter_count;
|
||||||
|
if(word_w_ptr != NULL) *word_w_ptr = 0; /* Return no word */
|
||||||
return 0;
|
return 0;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user