Make sanitize more robust to dangling pointers.

It is necessary to sanitize the new_word iterator too.
This commit is contained in:
Jean-Marc Lasgouttes 2017-01-27 16:36:06 +01:00
parent 2ea4b1dcdf
commit 344f7f2e7d

View File

@ -2245,6 +2245,7 @@ void Cursor::sanitize()
{
setBuffer(&bv_->buffer());
DocIterator::sanitize();
new_word_.sanitize();
if (selection())
anchor_.sanitize();
else