]> git.lyx.org Git - lyx.git/blobdiff - src/Buffer.h
fix a crash when the inset containing the new word at cursor is deleted
[lyx.git] / src / Buffer.h
index d0d787687c94510f5ada9c1339be7bbb313c7c90..19dd6eca7e8c4903cb9b0c6a36a26fdc293d9683 100644 (file)
@@ -183,9 +183,9 @@ public:
        /// Renames and saves the buffer
        bool saveAs(support::FileName const & fn);
 
-       /// Write document to stream. Returns \c false if unsuccesful.
+       /// Write document to stream. Returns \c false if unsuccessful.
        bool write(std::ostream &) const;
-       /// Write file. Returns \c false if unsuccesful.
+       /// Write file. Returns \c false if unsuccessful.
        bool writeFile(support::FileName const &) const;
 
        /// \name Functions involved in reading files/strings.
@@ -544,7 +544,7 @@ public:
 
        /// Collect user macro names at loading time
        typedef std::set<docstring> UserMacroSet;
-       UserMacroSet usermacros;
+       mutable UserMacroSet usermacros;
 
        /// Replace the inset contents for insets which InsetCode is equal
        /// to the passed \p inset_code.