Request to backport some screen-update code

Jean-Marc Lasgouttes lasgouttes at lyx.org
Wed Jul 10 13:19:21 UTC 2024


Hello,

The following patches are a backport of the recent patch series which 
added the possibility of knowing which paragraph metrics have a computed 
position and then fixed situations where the assertion added in this 
first patch was triggered.

Adding a new way to assert does not sound good in a stable series, BUT

1/ the assertion is not active in release code (this is not a real crash)

2/ I propose to add 3 more patches which addressed the known assertions.

Moreover, compared to the patch in master where a bad position will be 
returned in release code as -10000, the backported code will return -1 
as it used to do.

The 3 additional patches are harmless IMO, since all they do is add 
checks, add update operations, or remove a SinglePar optimization hint.

Riki, would that be OK?

JMarc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Handle-metrics-of-not-visible-paragraphs.patch
Type: text/x-patch
Size: 6382 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240710/eb329f25/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Make-sure-paragraph-positions-are-updated-when-scrol.patch
Type: text/x-patch
Size: 5485 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240710/eb329f25/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Remove-useless-SinglePar-update-when-scrolling-in-te.patch
Type: text/x-patch
Size: 1075 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240710/eb329f25/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-Make-BufferView-singeParUpdate-more-robust.patch
Type: text/x-patch
Size: 3176 bytes
Desc: not available
URL: <http://lists.lyx.org/pipermail/lyx-devel/attachments/20240710/eb329f25/attachment-0003.bin>


More information about the lyx-devel mailing list