]> git.lyx.org Git - features.git/blobdiff - src/LyX.cpp
Clear out selection and cut stack buffers on exit.
[features.git] / src / LyX.cpp
index 613d73f38c8a33ec7196d39ae73158056c44256a..873888c2915ef910928399295cb4e0efd929236a 100644 (file)
@@ -22,6 +22,7 @@
 #include "buffer_funcs.h"
 #include "BufferList.h"
 #include "Converter.h"
+#include "CutAndPaste.h"
 #include "debug.h"
 #include "Encoding.h"
 #include "ErrorList.h"
@@ -490,6 +491,10 @@ int LyX::exec(int & argc, char * argv[])
 
 void LyX::prepareExit()
 {
+       // Clear the clipboard and selection stack:
+       cap::clearCutStack();
+       cap::clearSelection();
+
        // Set a flag that we do quitting from the program,
        // so no refreshes are necessary.
        quitting = true;