Skip to content

Commit 176a965

Browse files
committed
Merge pull request #106649 from patwork/fix-char-cast
Fix for implicit conversion from `char16_t` to `char32_t` in `TextServerAdvanced`
2 parents 7951a1b + f9d28fc commit 176a965

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/text_server_adv/text_server_adv.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6289,7 +6289,7 @@ bool TextServerAdvanced::_shaped_text_update_justification_ops(const RID &p_shap
62896289
// No data - use fallback.
62906290
int limit = 0;
62916291
for (int i = 0; i < sd->text.length(); i++) {
6292-
if (is_whitespace(data[i])) {
6292+
if (is_whitespace(sd->text[i])) {
62936293
int ks = _generate_kashida_justification_opportunities(sd->text, limit, i) + sd->start;
62946294
if (ks != -1) {
62956295
sd->jstops[ks] = true;

0 commit comments

Comments
 (0)