Revert "textview: fix yoffset position when top_margin is set"

This reverts commit 908b1e5e12.

This commit broke top-margin altogether.
This commit is contained in:
Christian Hergert
2021-08-05 11:52:45 -07:00
parent 916886312a
commit fc701baef8

View File

@@ -4892,7 +4892,7 @@ changed_handler (GtkTextLayout *layout,
gtk_text_layout_get_line_yrange (layout, &first, &new_first_para_top, NULL);
old_first_para_top = priv->yoffset - priv->first_para_pixels;
old_first_para_top = priv->yoffset - priv->first_para_pixels + priv->top_margin;
if (new_first_para_top != old_first_para_top)
{