mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
Fix crash reported by Kornel.
See https://marc.info/?l=lyx-devel&m=161058233016780&w=2. Internal Buffers do not have TOCs associated with them, so we should not try to update them. This fixes Kornel's crash, but there may be other instances of the problem.
This commit is contained in:
parent
7c57001ad7
commit
e7b9aa672f
@ -2471,6 +2471,9 @@ void Cursor::setCurrentFont()
|
||||
|
||||
void Cursor::checkBufferStructure()
|
||||
{
|
||||
if (buffer()->isInternal())
|
||||
return;
|
||||
|
||||
Buffer const * master = buffer()->masterBuffer();
|
||||
master->tocBackend().updateItem(*this);
|
||||
if (master != buffer() && !master->hasGuiDelegate())
|
||||
|
Loading…
Reference in New Issue
Block a user