mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-07 02:28:35 +00:00
Fixup f3a0e8ff
: costly thinko
When the buffer stuff has been updated, the Buffer::needUpdate()
should be reset to false. This was forgotten in f3a0e8ff
.
Fixes performance issues with MergedManuals, for example. UpdateBuffer
would be run again and again when selecting text.
This commit is contained in:
parent
b08a653f35
commit
c9146e5be0
@ -4914,6 +4914,13 @@ void Buffer::bufferRefs(TeXErrors const & terr, ErrorList & errorList) const
|
||||
}
|
||||
|
||||
|
||||
void Buffer::updateBuffer() const
|
||||
{
|
||||
updateBuffer(UpdateMaster, InternalUpdate);
|
||||
d->need_update = false;
|
||||
}
|
||||
|
||||
|
||||
void Buffer::updateBuffer(UpdateScope scope, UpdateType utype) const
|
||||
{
|
||||
LBUFERR(!text().paragraphs().empty());
|
||||
|
@ -728,7 +728,7 @@ public:
|
||||
/// Updates screen labels and some other information associated with
|
||||
/// insets and paragraphs. Actually, it's more like a general "recurse
|
||||
/// through the Buffer" routine, that visits all the insets and paragraphs.
|
||||
void updateBuffer() const { updateBuffer(UpdateMaster, InternalUpdate); }
|
||||
void updateBuffer() const;
|
||||
/// \param scope: whether to start with the master document or just
|
||||
/// do this one.
|
||||
/// \param output: whether we are preparing for output.
|
||||
|
Loading…
Reference in New Issue
Block a user