]> git.lyx.org Git - lyx.git/commit
Make BufferView::singeParUpdate more robust
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 1 Jul 2024 21:56:33 +0000 (23:56 +0200)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Wed, 3 Jul 2024 15:43:00 +0000 (17:43 +0200)
commit89ab9eb569ec0eea87d9a8c269eb87507934e1c5
tree6e0ba23f7acf4e99e74a714f9e7b29ce45d76659
parent2bdd691130e5507fc5cc2ca81e71eef189e90fc5
Make BufferView::singeParUpdate more robust

In some cases, it might happen that this method is called in cases
where no metrics is know for the current paragraph or where its
position is not set.

Take care of these cases to avoid assertions.

Remove setting of inset positions in the method, but make sure that
updateMetrics(false) is always called to get everything right.

In the new code, updateMetrics(bool) os the method that sets
everything right with minimal effort.
src/BufferView.cpp