Browse Source

LibHTML: RenderingContext should keep the Palette alive

We were lugging around a reference to a temporary here.
Andreas Kling 5 years ago
parent
commit
ffbe975ffc
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Libraries/LibHTML/RenderingContext.h

+ 1 - 1
Libraries/LibHTML/RenderingContext.h

@@ -24,7 +24,7 @@ public:
 
 private:
     GPainter& m_painter;
-    const Palette& m_palette;
+    Palette m_palette;
     Rect m_viewport_rect;
     bool m_should_show_line_box_borders { false };
 };