summaryrefslogtreecommitdiff
path: root/frontends/gtk/layout_pango.c
diff options
context:
space:
mode:
Diffstat (limited to 'frontends/gtk/layout_pango.c')
-rw-r--r--frontends/gtk/layout_pango.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontends/gtk/layout_pango.c b/frontends/gtk/layout_pango.c
index 5276148e4..fb065b127 100644
--- a/frontends/gtk/layout_pango.c
+++ b/frontends/gtk/layout_pango.c
@@ -194,7 +194,7 @@ nsfont_split(const plot_font_style_t *fstyle,
pango_layout_set_single_paragraph_mode(layout, TRUE);
/* Obtain the second line of the layout (if there is one) */
- line = pango_layout_get_line(layout, 1);
+ line = pango_layout_get_line_readonly(layout, 1);
if (line != NULL) {
/* Pango split the text. The line's start_index indicates the
* start of the character after the line break. */