forked from AuroraMiddleware/gtk
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:
commit
7a81b7c7be
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user