commit e7b9aa672f0fcb61676702e90facabbfa900ddec
Author: Richard Kimberly Heck <[email protected]>
Date: Thu Jan 14 14:17:51 2021 -0500
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.
---
src/Cursor.cpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/src/Cursor.cpp b/src/Cursor.cpp
index 939b92b..074047f 100644
--- a/src/Cursor.cpp
+++ b/src/Cursor.cpp
@@ -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())
--
lyx-cvs mailing list
[email protected]
http://lists.lyx.org/mailman/listinfo/lyx-cvs