mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-09-17 15:56:01 -06:00
another fix
This commit is contained in:
@@ -1676,11 +1676,15 @@ bool PgfParser::change(size_t i, PgfText *change)
|
|||||||
allocated_size = new_allocated_size;
|
allocated_size = new_allocated_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
const uint8_t *ptr1 =
|
size_t pos;
|
||||||
(prev_state!=NULL)
|
const uint8_t *ptr1;
|
||||||
? (uint8_t *) &sentence->text[prev_state->start.byte_pos]
|
if (prev_state!=NULL) {
|
||||||
: NULL;
|
ptr1 = (uint8_t *) &sentence->text[prev_state->start.byte_pos];
|
||||||
size_t pos = prev_state->start.pos;
|
pos = prev_state->start.pos;
|
||||||
|
} else {
|
||||||
|
ptr1 = (uint8_t *) sentence->text;
|
||||||
|
pos = 0;
|
||||||
|
}
|
||||||
while (pos < update_new_pos) {
|
while (pos < update_new_pos) {
|
||||||
pgf_utf8_decode(&ptr1); pos++;
|
pgf_utf8_decode(&ptr1); pos++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user