]> git.lyx.org Git - lyx.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>
Tue, 19 Dec 2017 22:32:47 +0000 (23:32 +0100)
commit68614e9783382b6267fc9ce32ed45bc2477007dd
treedbf30bef41470a81338d1644438848172d4f8512
parent634f69ee23997cfc7000c3bd9d3a347af524b5cb
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.
src/insets/Inset.cpp
src/insets/Inset.h
src/mathed/InsetMathHull.cpp
src/mathed/InsetMathHull.h
src/mathed/MathRow.cpp