On Wed, May 04, 2011 at 12:36:00AM -0400, Richard Heck wrote:
> On 05/03/2011 09:48 PM, Enrico Forestieri wrote:
> > On Fri, Apr 29, 2011 at 05:17:33PM +0200, Peter Kümmel wrote:
> >>
> >> Yes, we also don't need threads.
> > I am glad that you also agree on that. Please, now try fixing
> > http://www.lyx.org/trac/ticket/7525
> >
> Well, I can't resist a challenge....

Funny that you felt challenged...

> The attached patch fixes the reported problem. I'm not sure it's the
> right thing to do, though.

Maybe the right thing to do is to update the macros at cloning time.
See attached.

-- 
Enrico
Index: src/Buffer.cpp
===================================================================
--- src/Buffer.cpp      (revisione 38579)
+++ src/Buffer.cpp      (copia locale)
@@ -444,6 +444,7 @@ Buffer * Buffer::clone() const
                buffer_clone->setChild(dit, child_clone);
        }
        buffer_clone->d->macro_lock = false;
+       buffer_clone->updateMacros();
        return buffer_clone;
 }
 

Reply via email to