]> git.lyx.org Git - features.git/commitdiff
Clear temp cutstack before exiting LyX.
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 Nov 2016 15:54:45 +0000 (16:54 +0100)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Mon, 21 Nov 2016 16:03:50 +0000 (17:03 +0100)
Otherwise it is done in the exit handler, which leads to crashes.

src/CutAndPaste.cpp

index 3cceb2bba5b2cca3122debaaf95ebfb05a6e7172..7e09ac9ff95bd7659cc9f783ac33add56f0181ee 100644 (file)
@@ -1072,6 +1072,7 @@ void clearSelection()
 void clearCutStack()
 {
        theCuts.clear();
+       tempCut.clear();
 }