commit 507c5227dfe0bde2ca2cf8703690f2370c48672a
Author: Koji Yokota <[email protected]>
Date: Fri May 2 21:20:34 2025 +0900
Accommodating the case of long intertexts
---
src/mathed/InsetMathIntertext.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/mathed/InsetMathIntertext.cpp
b/src/mathed/InsetMathIntertext.cpp
index b412566f3f..4d054ed14b 100644
--- a/src/mathed/InsetMathIntertext.cpp
+++ b/src/mathed/InsetMathIntertext.cpp
@@ -51,7 +51,6 @@ void InsetMathIntertext::metrics(MetricsInfo & mi, Dimension
& dim) const
{
Changer dummy = mi.base.changeFontSet("text");
cell(0).metrics(mi, dim);
- dim.wid = 4;
if (name_ == "shortintertext")
dim.asc += dim.asc + dim.des + spacer_;
else
@@ -70,7 +69,7 @@ void InsetMathIntertext::draw(PainterInfo & pi, int x, int y)
const
text_y = y - dim.asc + dim.des + 2 * spacer_;
else
text_y = y - dim.asc + 2 * dim.des + 4 * spacer_;
- cell(0).draw(pi, (pi.leftx + x)/2, text_y);
+ cell(0).draw(pi, x, text_y);
}
--
lyx-cvs mailing list
[email protected]
https://lists.lyx.org/mailman/listinfo/lyx-cvs