]> git.lyx.org Git - features.git/blobdiff - src/Cursor.cpp
Automatically show the review toolbar if the document has tracked changes
[features.git] / src / Cursor.cpp
index ed182ace64de377e72099c7f7d49eeb634d2be34..1f84f45feaace06c37a8156e9c4fa35b7c829537 100644 (file)
@@ -2426,6 +2426,12 @@ void Cursor::checkBufferStructure()
                // In case the master has no gui associated with it,
                // the TocItem is not updated (part of bug 5699).
                buffer()->tocBackend().updateItem(*this);
+
+       // If the last tracked change of the paragraph has just been
+       // deleted, then we need to recompute the buffer flag
+       // tracked_changes_present_.
+       if (inTexted() && paragraph().isChangeUpdateRequired())
+               disp_.forceChangesUpdate();
 }