diff options
author | Christian Hergert <chergert@redhat.com> | 2021-08-05 11:52:45 -0700 |
---|---|---|
committer | Christian Hergert <chergert@redhat.com> | 2021-08-05 11:52:45 -0700 |
commit | fc701baef88de89902e08a96bbf6e807acd5049b (patch) | |
tree | 3f5feeabe4b1867e129807e492ec83e01fb61728 /gtk/gtktextview.c | |
parent | 916886312a5875ce36cb10ad720199819fa11aa8 (diff) | |
download | gtk+-fc701baef88de89902e08a96bbf6e807acd5049b.tar.gz |
Revert "textview: fix yoffset position when top_margin is set"
This reverts commit 908b1e5e1214afc01440bc07a8d937222f411f38.
This commit broke top-margin altogether.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index d6673bed62..6e1a922e37 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -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) { |