Make sanitize more robust to dangling pointers.

It is necessary to sanitize the new_word iterator too.
(cherry picked from commit 344f7f2e7d)
This commit is contained in:
Jean-Marc Lasgouttes 2017-01-27 16:36:06 +01:00
parent a50ad8f926
commit 90688b63be
2 changed files with 5 additions and 2 deletions

View File

@ -2249,6 +2249,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

View File

@ -187,6 +187,8 @@ What's new
- Fix size of Section* headings in amsart. - Fix size of Section* headings in amsart.
- Fix possible crash with Save As... when online spell-checking is active.
* INTERNALS * INTERNALS