]> git.lyx.org Git - features.git/commitdiff
Fix bug #12165
authorEnrico Forestieri <forenr@lyx.org>
Tue, 23 Feb 2021 18:59:57 +0000 (19:59 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Tue, 23 Feb 2021 19:00:50 +0000 (20:00 +0100)
src/mathed/InsetMathDots.cpp
src/mathed/MathSupport.cpp

index a89da08b340c6a554ee8ae82fa1418752a5961dd..41933f3ab18710823d25f2785fca6bfcb0faa0e0 100644 (file)
@@ -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);
 }
 
index 8f30bcafc356815d0c864296bd0329c316a3e584..6a5218bac49aa08aac226b34df96b98fe8bd35a9 100644 (file)
@@ -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
 };