Slow responding to mouse clicks in included child document
kornel at lyx.org
Fri Apr 9 09:28:14 UTC 2021
Am Thu, 8 Apr 2021 18:33:47 +0200
schrieb Kornel Benko <kornel at lyx.org>:
> 1.) Open 'MergedManuals'
> 2.) Goto Intro.lyx
> 2a.) Edit included document
> 3.) Mouse click anywhere inside this documen
> 3a.) wait, wait, ...
> No such problems with lyx2.3.
Bisect lead to
f3a0e8ff9a9b914d40eb520bb31674d1ad4eb0d0 is the first bad commit
Author: Jean-Marc Lasgouttes <lasgouttes at lyx.org>
Date: Thu Jan 28 10:10:18 2021 +0100
Run updateBuffer when adding/merging changes
Following 4a4ded22, the enabling of some change-related functions is
handled in updateBuffer. However, this method is not ran at every
document change for performance reasons.
This patch adds code to every place that modifies
Paragraph::Private::changes_ that checks whether the `changedness' of
the paragraph, err... changes.
To this end, a new helper struct is introduced that remembers
paragraph state at contruction time, and compares it to new state in
New forceUpdate/needUpdate methods are added to Buffer class, since
the cursor is in general not available in the places where these
changes are made.
Fixes bug #12074.
:040000 040000 51604870808f821addf92eeed8ac5bfbd1843c84
72930f724d365abc33c2563aad847730dc0d03bf M src
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
More information about the lyx-devel