summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-28 17:25:36 +0000
committerMatthias Clasen <mclasen@redhat.com>2021-03-28 17:25:36 +0000
commit52aea624a617814ef7cfef474a72e07988e50151 (patch)
treedc2facaa7e72407d2219bf3dd85b62d28d09e96f
parent711acb6aa7280b2b687a5b3a23e26bb79cabe968 (diff)
parenta75c038e09db83277bedae8783dc698a4e934078 (diff)
downloadgtk+-52aea624a617814ef7cfef474a72e07988e50151.tar.gz
Merge branch 'text-node-tweak' into 'master'
textview: Tweak render nodes See merge request GNOME/gtk!3362
-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 ();