Fix panic in `render_layout_box` caused by indexing an already-indexed slice.

This commit is contained in:
David Wendt 2020-05-18 19:44:39 -04:00
parent 3b80ff8d23
commit 0aab45f389
1 changed files with 1 additions and 1 deletions

View File

@ -373,7 +373,7 @@ impl<'gc> EditText<'gc> {
if let Some((start, end, _tf, font, font_size)) = lbox.read().text_node() {
if let Some(chunk) = edit_text.text_spans.text().get(start..end) {
font.evaluate(
&chunk[start..end],
&chunk,
self.text_transform(),
font_size,
|transform, glyph: &Glyph| {