]> 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>
Fri, 3 Apr 2020 17:02:29 +0000 (19:02 +0200)
commitee7c607b5e8e4d3bdb7e4af6058d24ed9586c705
tree837dcca6c53a2eafbf250a8b299b7ecc233cebbb
parentdd76f4756f73d03082fe7be2b0087e86f879e648
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.

(cherry picked from commit eb92f74d1f7ae63112b9439058d746f7ff93e8f4)
src/TextMetrics.cpp
status.23x