Commit a08172ea authored by Matthias Clasen's avatar Matthias Clasen

tests: Make test-layout work standalone

This broke when I recently reshuffled things.
parent 93e6eb66
......@@ -238,6 +238,9 @@ test_file (const gchar *filename, GString *string)
PangoWrapMode wrap = PANGO_WRAP_WORD;
PangoFontDescription *desc;
if (context == NULL)
context = pango_font_map_create_context (pango_cairo_font_map_get_default ());
g_file_get_contents (filename, &contents, &length, &error);
g_assert_no_error (error);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment