[LyX/master] Fix bug #12165

Enrico Forestieri forenr at lyx.org
Tue Feb 23 18:56:36 UTC 2021


commit 368e983abb439a7aa652bcdadfa7d3b7e2574a37
Author: Enrico Forestieri <forenr at lyx.org>
Date:   Tue Feb 23 19:59:57 2021 +0100

    Fix bug #12165
---
 src/mathed/InsetMathDots.cpp |    6 +++---
 src/mathed/MathSupport.cpp   |    6 +++---
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/mathed/InsetMathDots.cpp b/src/mathed/InsetMathDots.cpp
index a89da08..41933f3 100644
--- a/src/mathed/InsetMathDots.cpp
+++ b/src/mathed/InsetMathDots.cpp
@@ -43,8 +43,8 @@ void InsetMathDots::metrics(MetricsInfo & mi, Dimension & dim) const
 	if (key_->name == "cdots" || key_->name == "dotsb"
 			|| key_->name == "dotsm" || key_->name == "dotsi")
 		dh_ = dim.asc / 2;
-	else if (key_->name == "dotsc")
-		dh_ = dim.asc / 4;
+	else if (key_->name == "dotsc" || key_->name == "ldots")
+		dh_ = 2;
 	else if (key_->name == "ddots" || key_->name == "adots"
 			|| key_->name == "iddots" || key_->name == "vdots")
 		dh_ = dim.asc;
@@ -58,7 +58,7 @@ void InsetMathDots::draw(PainterInfo & pi, int x, int y) const
 		--y;
 	else if (key_->name == "vdots")
 		x += (dim.width() - 2) / 2;
-	mathed_draw_deco(pi, x + 2, y - dh_, dim.width() - 2, dim.ascent(),
+	mathed_draw_deco(pi, x - 1, y - dh_, dim.width() - 2, dim.ascent(),
 			key_->name);
 }
 
diff --git a/src/mathed/MathSupport.cpp b/src/mathed/MathSupport.cpp
index 8f30bca..6a5218b 100644
--- a/src/mathed/MathSupport.cpp
+++ b/src/mathed/MathSupport.cpp
@@ -363,9 +363,9 @@ double const ddddot[] = {
 
 
 double const hline3[] = {
-	5, 0.15, 0.05, 0.0625, 0.0625,
-	5, 0.50, 0.05, 0.0625, 0.0625,
-	5, 0.85, 0.05, 0.0625, 0.0625,
+	5, 0.15, 0.0, 0.0625, 0.0625,
+	5, 0.50, 0.0, 0.0625, 0.0625,
+	5, 0.85, 0.0, 0.0625, 0.0625,
 	0
 };
 


More information about the lyx-cvs mailing list