]> git.lyx.org Git - features.git/commitdiff
Fix small glitch with \underXXXarrow and \overXXXarrow
authorEnrico Forestieri <forenr@lyx.org>
Fri, 12 Feb 2021 22:51:29 +0000 (23:51 +0100)
committerEnrico Forestieri <forenr@lyx.org>
Fri, 12 Feb 2021 22:56:27 +0000 (23:56 +0100)
When the argument is long enough, the arrow in the on-screen representation
was not covering the first or the last glyphs. For example, using
\overrightarrow{abcdefghijklmnopqrstuvwxyz}
the 'a' was drawn outside the covering arrow.

src/mathed/MathSupport.cpp

index 1203a3100b5e2cf3679ea7436155c9f7ac87f641..a4b06934416619f49dd5becf59b5532967d6e1dc 100644 (file)
@@ -235,7 +235,7 @@ double const arrow[] = {
        0.0500, 0.7500, 0.2000, 0.6000, 0.3500, 0.3500,
        0.5000, 0.0500, 0.6500, 0.3500, 0.8000, 0.6000,
        0.9500, 0.7500,
-       3, 0.5000, 0.1500, 0.5000, 0.9500,
+       3, 0.5000, 0.1500, 0.5000, 1.0000,
        0
 };