mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-09-20 06:49:56 +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());
|
setBuffer(&bv_->buffer());
|
||||||
DocIterator::sanitize();
|
DocIterator::sanitize();
|
||||||
|
new_word_.sanitize();
|
||||||
if (selection())
|
if (selection())
|
||||||
anchor_.sanitize();
|
anchor_.sanitize();
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user