textlinedisplaycache: fix const-preserving gtk_text_iter_order()

This commit is contained in:
Christian Hergert 2023-03-08 13:00:08 -08:00
parent f743b95161
commit 40d99839d6

View File

@ -511,7 +511,7 @@ gtk_text_line_display_cache_invalidate_range (GtkTextLineDisplayCache *cache,
/* gtk_text_iter_order() preserving const */
if (gtk_text_iter_compare (begin, end) > 0)
{
const GtkTextIter *tmp = begin;
const GtkTextIter *tmp = end;
end = begin;
begin = tmp;
}