]> 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, 10 Jul 2024 15:18:48 +0000 (17:18 +0200)
commitaadf3d8a5da69a5a0a21f4f4420407ce0da37691
treec1174fd2c780bbbd86e22f6601ee5358653dc59a
parentf4364c7593a66c63a7a2b588ff60c3350353d89c
Make BufferView::singeParUpdate more robust

In some cases, it might happen that this method is called with no
metrics or position known for the current paragraph.

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) is the method that sets
everything right with minimal effort.

(cherry picked from commit 89ab9eb569ec0eea87d9a8c269eb87507934e1c5)
src/BufferView.cpp