]> git.lyx.org Git - features.git/commit
Do not draw inactive math corners when they have mathbg color
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 19 Dec 2017 21:32:32 +0000 (22:32 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Sat, 23 Dec 2017 18:53:58 +0000 (19:53 +0100)
commit546a6a2a310b12fa0d3692cca10920a938f07f9c
tree023fc9d7c1704bdcd53f36fe6fe4916b39521ba4
parent92f320ff4a33053e369ed023b8c559d5d9ed35e7
Do not draw inactive math corners when they have mathbg color

By default, inactive math corners are invisible. In practice they are
annoying because they are visible when selecting text, and they can
also overwrite some parts of the equation.

The code in Inset::drawMarkers2, which is only used for maths, is
moved to InsetMathHull. Moreover, the inactive corners are not drawn
when they have the same color as the math background. A better way to
achieve this would be to set the color to transparent, but we do not
support this yet.

(cherry picked from commit 68614e9783382b6267fc9ce32ed45bc2477007dd)
src/insets/Inset.cpp
src/insets/Inset.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h
src/mathed/MathRow.cpp