Commit 02e2f7dc authored by Matthias Clasen's avatar Matthias Clasen

Fix a cornercase crash

If gtk_text_layout_move_cursor_visually is called with a
count of 0, we were passing NULL to a free function that
can't handle it. Don't do that.
parent 03312371
......@@ -3660,7 +3660,8 @@ gtk_text_layout_move_iter_visually (GtkTextLayout *layout,
gtk_text_iter_backward_char (iter);
gtk_text_layout_free_line_display (layout, display);
if (display)
gtk_text_layout_free_line_display (layout, display);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment