The branch, master, has been updated.

- Log -----------------------------------------------------------------

commit ea118f2da5a393aa6a0c0c9fba9b456f8f85d9ce
Author: Vincent van Ravesteijn <[email protected]>
Date:   Sun Apr 28 18:45:51 2013 +0200

    Make staticbuffer static again
    
    Otherwise the number of internal buffers in incremented on each cut
    action.

diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp
index b996d8a..b0af875 100644
--- a/src/CutAndPaste.cpp
+++ b/src/CutAndPaste.cpp
@@ -478,7 +478,7 @@ void putClipboard(ParagraphList const & paragraphs,
        // to be so, but the alternative is to construct a new one of these 
(with a
        // new temporary directory, etc) every time, and then to destroy it. So 
maybe
        // it's worth just keeping this one around.
-       Buffer * staticbuffer = theBufferList().newInternalBuffer(
+       static Buffer * staticbuffer = theBufferList().newInternalBuffer(
                FileName::tempName("clipboard.internal").absFileName());
 
        // These two things only really need doing the first time.

-----------------------------------------------------------------------

Summary of changes:
 src/CutAndPaste.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)


hooks/post-receive
-- 
The LyX Source Repository

Reply via email to