From: Abdelrazak Younes Date: Mon, 14 Jul 2008 06:29:04 +0000 (+0000) Subject: temporarily fix http://bugzilla.lyx.org/show_bug.cgi?id=5026 X-Git-Tag: 1.6.10~4088 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=7b7f95a439a79eabb5f16738258639b064790156;p=features.git temporarily fix http://bugzilla.lyx.org/show_bug.cgi?id=5026 This will reopen bug 5010 temporarily. Please don't touch this until I am finished. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25593 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index a9b8fc9b30..3b54dc890a 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -365,7 +365,10 @@ void putClipboard(ParagraphList const & paragraphs, // a DocumentClass, via new, that is never deleted. If we were to go to // some kind of garbage collection there, or a shared_ptr, then this // would not be needed. - static Buffer buffer("", false); + // FIXME: this cannot be static because it gets destructed after the main + // LyX singleton is destroyed and the code is just not ready for that yet! + //static Buffer buffer("", false); + Buffer buffer("", false); buffer.setUnnamed(true); buffer.paragraphs() = paragraphs; buffer.params().setDocumentClass(docclass);