]> git.lyx.org Git - features.git/commit
Make sure that rows are repainted when they get (un)selected
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 29 Nov 2017 10:16:09 +0000 (11:16 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 15 Feb 2018 11:29:25 +0000 (12:29 +0100)
commit8af3077753381238e1fb3e21d65017b94778a47c
tree111ce16c021b559dc3b4b5fdb1085ada42018620
parent9c8e3df86bb3140435e022d67cd7b6f7f8575c71
Make sure that rows are repainted when they get (un)selected

The bug is the following: when selecting several paragraphs quickly
enough, some rows do not get selected.This is a consequence of the
removal of row crc, which lead to not taking into account the
selection status of the row in the decision to repaint.

The solution chosen here is to add a Row::change() helper function to
modify row members. This will set the Row changed status whenever the
value of the member changes.

(cherry picked from commit ae60749f89fb4ee0fca05ac75979d434f6b0401d)
src/Row.cpp
src/Row.h
src/TextMetrics.cpp