]> git.lyx.org Git - features.git/commit
Do not modify the changed() status of rows when no drawing has taken place
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 30 Jan 2015 10:18:04 +0000 (11:18 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 9 Feb 2015 14:16:41 +0000 (15:16 +0100)
commit51cc1a1cbed395ab79ffa98765231efac4112c56
tree7d55d50475cdfccaba0b014960c2c0c70af8af25
parent7a2ac2f08ddfed0ef93a287f1233eb03277c8b8c
Do not modify the changed() status of rows when no drawing has taken place

There are several places in the code where a row is painted with drawing disabled in the painter. The goal is only to recompute inset positions.

Such a case happens in BufferView::checkCursorScrollOffset, as part of the horizontal scrolling patch. Note that this particular piece of code should eventually be removed, since it is a performance problem.

It makes sense to consider that only a real painting of a row should change its status. However, I would not be surprised if this change would break other things.

Fixes: #9388
src/BufferView.cpp
src/TextMetrics.cpp