summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
Diffstat (limited to 'gtk')
-rw-r--r--gtk/font_pango.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/font_pango.c b/gtk/font_pango.c
index e83619ad8..53b443c5d 100644
--- a/gtk/font_pango.c
+++ b/gtk/font_pango.c
@@ -244,7 +244,7 @@ bool nsfont_paint(int x, int y, const char *string, size_t length,
pango_layout_set_font_description(layout, desc);
pango_layout_set_text(layout, string, length);
- line = pango_layout_get_line(layout, 0);
+ line = pango_layout_get_line_readonly(layout, 0);
cairo_move_to(current_cr, x, y);
nsgtk_set_colour(fstyle->foreground);