textlayout: fix bounds for clipping

This should match gtk_snapshot_append_layout(), which means that we expect the
bounds to be rooted at 0, 0.
This commit is contained in:
Christian Hergert 2019-07-21 18:21:04 -07:00
parent 980a6a20b1
commit e475d4bdc5

View File

@ -4036,11 +4036,7 @@ gtk_text_layout_snapshot (GtkTextLayout *layout,
crenderer->snapshot = snapshot;
crenderer->fg_color = color;
graphene_rect_init (&crenderer->bounds,
clip->x,
clip->y,
clip->width,
clip->height);
graphene_rect_init (&crenderer->bounds, 0, 0, clip->width, clip->height);
gtk_text_layout_wrap_loop_start (layout);