summaryrefslogtreecommitdiff
path: root/gtk/gtktextlayout.c
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r--gtk/gtktextlayout.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c
index b90e6d12f1..05d9fa9b2a 100644
--- a/gtk/gtktextlayout.c
+++ b/gtk/gtktextlayout.c
@@ -4160,6 +4160,9 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
if (line_list == NULL)
return; /* nothing on the screen */
+ gtk_snapshot_translate (snapshot, &GRAPHENE_POINT_INIT (0, offset_y));
+ offset_y = 0;
+
cursor_snapshot = gtk_snapshot_new ();
crenderer = gsk_pango_renderer_acquire ();