1
0
mirror of https://github.com/lvgl/lvgl.git synced 2025-01-28 07:03:00 +08:00

chore(bidi): minor optimization (#4441)

This commit is contained in:
incity 2023-08-10 12:25:02 +08:00 committed by GitHub
parent 73de6a2e94
commit 014905ad3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -248,7 +248,7 @@ void _lv_bidi_process_paragraph(const char * str_in, char * str_out, uint32_t le
pos_conv_rd++;
dir = lv_bidi_get_letter_dir(letter);
if(dir == LV_BASE_DIR_NEUTRAL) dir = bracket_process(str_in, rd, len, letter, base_dir);
if(dir != LV_BASE_DIR_NEUTRAL && dir != LV_BASE_DIR_WEAK) break;
else if(dir != LV_BASE_DIR_WEAK) break;
}
if(rd && str_in[rd] != '\0') {