Merge branch 'wip/chergert/fix-textlayout-bounds' into 'master'

textlayout: fix bounds for clipping

See merge request GNOME/gtk!1006
This commit is contained in:
Matthias Clasen 2019-07-22 01:53:17 +00:00
commit 7a81b7c7be

View File

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