[LyX/master] Revert "Remove left/right spacing around top/left buttons"
Jean-Marc Lasgouttes
lasgouttes at lyx.org
Sun Dec 11 19:00:39 UTC 2022
commit 02783aec662cc92e038ef8f26ae9d5b5b2ac881d
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Sat Dec 10 20:52:33 2022 +0100
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 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/src/insets/InsetCollapsible.cpp b/src/insets/InsetCollapsible.cpp
index 84bb314..c19d3a4 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;
}
More information about the lyx-cvs
mailing list