From 8218ead707c0e28f728a4b37a6661308275d4af9 Mon Sep 17 00:00:00 2001 From: Glenn Watson Date: Fri, 14 Aug 2015 11:48:36 +1000 Subject: [PATCH] Fix "'PaintWorker' panicked at 'index 0 and/or 4 in `*` do not lie on character boundary" when printing display list. This whole piece of code seems a bit fragile, but it fixes the immediate problem for now. --- components/gfx/display_list/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/gfx/display_list/mod.rs b/components/gfx/display_list/mod.rs index bb2b6653bd9..2822b6908a2 100644 --- a/components/gfx/display_list/mod.rs +++ b/components/gfx/display_list/mod.rs @@ -314,7 +314,7 @@ impl StackingContext { if opts::get().dump_display_list_optimized { println!("**** optimized display list. Tile bounds: {:?}", paint_context.page_rect); - display_list.print_items("*".to_owned()); + display_list.print_items("####".to_owned()); } // Sort positioned children according to z-index.