From 02783aec662cc92e038ef8f26ae9d5b5b2ac881d Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Sat, 10 Dec 2022 20:52:33 +0100 Subject: [PATCH] Revert "Remove left/right spacing around top/left buttons" Let's try to find a better solution (see ticket #12335) This reverts commit d2f23c303cc96e74fcec480f392f3dcce334ba8f. --- src/insets/InsetCollapsible.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/insets/InsetCollapsible.cpp b/src/insets/InsetCollapsible.cpp index 84bb314f3c..c19d3a4e92 100644 --- a/src/insets/InsetCollapsible.cpp +++ b/src/insets/InsetCollapsible.cpp @@ -187,12 +187,9 @@ Dimension InsetCollapsible::dimensionCollapsed(BufferView const & bv) const { Dimension dim; FontInfo labelfont(getLabelfont()); - int const offset = - (geometry(bv) != LeftButton && geometry(bv) != TopButton) - ? Inset::textOffset(&bv) : 0; labelfont.realize(sane_font); theFontMetrics(labelfont).buttonText( - buttonLabel(bv), offset, dim.wid, dim.asc, dim.des); + buttonLabel(bv), Inset::textOffset(&bv), dim.wid, dim.asc, dim.des); return dim; } -- 2.39.5