]> git.lyx.org Git - features.git/commitdiff
Make sanitize more robust to dangling pointers.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 27 Jan 2017 15:36:06 +0000 (16:36 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Thu, 2 Feb 2017 12:57:12 +0000 (13:57 +0100)
It is necessary to sanitize the new_word iterator too.
(cherry picked from commit 344f7f2e7dbfda5b24df2fa6b18846c3aa25cb40)

src/Cursor.cpp
status.22x

index 38559f9646122a14b45fd2861747e42766ea9b6b..0b7798485b0083e29a9b4b2e3f1ac5e6359c34db 100644 (file)
@@ -2249,6 +2249,7 @@ void Cursor::sanitize()
 {
        setBuffer(&bv_->buffer());
        DocIterator::sanitize();
+       new_word_.sanitize();
        if (selection())
                anchor_.sanitize();
        else
index 7fd3b2a099ef98d3b5e661278856e584798ee98e..34afd0d0a253c31135a8a4298697e3885c5df502 100644 (file)
@@ -109,11 +109,11 @@ What's new
 
 - Fix some quote inset bugs (bug 10451):
   # Adjoining closing Single + double quote becomes double + single quote
-    (for English, Swedish and German). 
+    (for English, Swedish and German).
   # French double quotes are converted to << >> in the LaTeX file and to double
     inverted question/interrogation marks in the output, if the font encoding is
     set to [None] or OT1 but the global default is T1.
-  # Quote type ignored for LyXHTML: always "English" quotes used. 
+  # Quote type ignored for LyXHTML: always "English" quotes used.
 
 - Output correct identifier for DocBook XML.
 
@@ -187,6 +187,8 @@ What's new
 
 - Fix size of Section* headings in amsart.
 
+- Fix possible crash with Save As... when online spell-checking is active.
+
 
 * INTERNALS