mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 17:30:10 +00:00
entry: Guard clipping with a save/restore
Just t be sure, so people don't get bugs later when they refactor code.
This commit is contained in:
parent
c70698084c
commit
033d204b9e
@ -5753,6 +5753,8 @@ gtk_entry_draw_text (GtkEntry *entry,
|
||||
&progress_x, &progress_y,
|
||||
&progress_width, &progress_height);
|
||||
|
||||
cairo_save (cr);
|
||||
|
||||
clip_width = gdk_window_get_width (priv->text_area);
|
||||
clip_height = gdk_window_get_height (priv->text_area);
|
||||
cairo_rectangle (cr, 0, 0, clip_width, clip_height);
|
||||
@ -5799,6 +5801,8 @@ gtk_entry_draw_text (GtkEntry *entry,
|
||||
|
||||
cairo_restore (cr);
|
||||
}
|
||||
|
||||
cairo_restore (cr);
|
||||
}
|
||||
|
||||
static void
|
||||
|
Loading…
Reference in New Issue
Block a user