mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
Fix embarassing crash caused by debug message
After commit 6a936d63
, the helpful debug message tries to display
non-existing elements and crashes the program :(
Fix by radical simplification of the message.
Part of bug #11777.
This commit is contained in:
parent
59e84a525f
commit
b5d6caac41
@ -633,11 +633,7 @@ void DocIterator::sanitize()
|
||||
for (size_t i = 0, n = sl.size(); i != n; ++i) {
|
||||
if (inset == nullptr) {
|
||||
// FIXME
|
||||
LYXERR0(" Should not happen, but does e.g. after "
|
||||
"C-n C-l C-z S-C-z\n"
|
||||
<< " or when a Buffer has been concurrently edited by two views"
|
||||
<< '\n' << "dit: " << *this << '\n'
|
||||
<< " lastpos: " << slices_[i].lastpos());
|
||||
LYXERR0("Null inset on cursor stack.");
|
||||
fixIfBroken();
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user