From 195e25958cfaa42d91b36f3fc51e8315586c6378 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Tue, 5 Jul 2022 14:50:18 +0200 Subject: Fix bug when removing loose label ends --- src/construct/label_end.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/construct/label_end.rs b/src/construct/label_end.rs index 24ac3a5..3a40cc2 100644 --- a/src/construct/label_end.rs +++ b/src/construct/label_end.rs @@ -194,7 +194,7 @@ pub fn resolve_media(tokenizer: &mut Tokenizer) -> Vec { edit_map.add( data_enter_index, - data_exit_index - data_enter_index, + data_exit_index - data_enter_index + 1, vec![ Event { event_type: EventType::Enter, -- cgit