diff --git a/util/view-cairo.hh b/util/view-cairo.hh index 6e85b927f..430f6f9fd 100644 --- a/util/view-cairo.hh +++ b/util/view-cairo.hh @@ -141,8 +141,8 @@ view_cairo_t::render (const font_options_t *font_opts) /* Create surface. */ cairo_t *cr = helper_cairo_create_context (w + margin.l + margin.r, h + margin.t + margin.b, - static_cast (this), - static_cast (this), + this, + this, content); cairo_set_scaled_font (cr, scaled_font);