]> git.lyx.org Git - features.git/commit
Avoid bleeding of inset background outside of inset
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Tue, 24 Mar 2020 11:01:43 +0000 (12:01 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 18 Jun 2020 13:48:55 +0000 (15:48 +0200)
commit734ed1dea144ebf02e325a8c12f0235b45c8a3c9
tree3fb89ab26c8c0734e8b318c47495283b2ab1ca74
parent26bfdc2bebdd30b6855ab0ce9e392ba2eed1f926
Avoid bleeding of inset background outside of inset

As a consequence of fix e64ea357 to ticket #10797, we draw a bit too
much of the inset background outside of the inset (visible for insets
with colored background). #10797 is a ticket that triggers when the
cursor has a width larger than 1.

This patch limits the problems in two respects

* nothing is done on the left, since the cursor width only expands on
  the right.

* on the right, the extra width is limited to cursor width.

Fixes bug #11786.
src/TextMetrics.cpp