mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Make sanitize more robust to dangling pointers.
It is necessary to sanitize the new_word iterator too.
This commit is contained in:
parent
2ea4b1dcdf
commit
344f7f2e7d
@ -2245,6 +2245,7 @@ void Cursor::sanitize()
|
||||
{
|
||||
setBuffer(&bv_->buffer());
|
||||
DocIterator::sanitize();
|
||||
new_word_.sanitize();
|
||||
if (selection())
|
||||
anchor_.sanitize();
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user