diff options
Diffstat (limited to 'gtk/gtktextlayout.c')
-rw-r--r-- | gtk/gtktextlayout.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk/gtktextlayout.c b/gtk/gtktextlayout.c index 358a92e517..b90e6d12f1 100644 --- a/gtk/gtktextlayout.c +++ b/gtk/gtktextlayout.c @@ -4236,6 +4236,13 @@ gtk_text_layout_snapshot (GtkTextLayout *layout, selection_end_index = -1; } + if (line_display->node != NULL) + { + if (line_display->has_block_cursor && + gtk_widget_has_focus (widget)) + g_clear_pointer (&line_display->node, gsk_render_node_unref); + } + if (line_display->node == NULL) { gtk_snapshot_push_collect (snapshot); |