File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/java.desktop/share/native/libharfbuzz Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -458,19 +458,21 @@ struct hb_ascii_t
458
458
template <typename utf_t >
459
459
static inline const typename utf_t ::codepoint_t *
460
460
hb_utf_offset_to_pointer (const typename utf_t ::codepoint_t *start,
461
+ const typename utf_t ::codepoint_t *text,
462
+ unsigned text_len,
461
463
signed offset)
462
464
{
463
465
hb_codepoint_t unicode;
464
466
465
467
while (offset-- > 0 )
466
468
start = utf_t::next (start,
467
- start + utf_t ::max_len ,
469
+ text + text_len ,
468
470
&unicode,
469
471
HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
470
472
471
473
while (offset++ < 0 )
472
474
start = utf_t::prev (start,
473
- start - utf_t ::max_len ,
475
+ text ,
474
476
&unicode,
475
477
HB_BUFFER_REPLACEMENT_CODEPOINT_DEFAULT);
476
478
You can’t perform that action at this time.
0 commit comments