Fix panic in `render_layout_box` caused by indexing an already-indexed slice.
This commit is contained in:
parent
3b80ff8d23
commit
0aab45f389
|
@ -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| {
|
||||
|
|
Loading…
Reference in New Issue