Re: Static member initialization ordering bug

2016-03-28 Thread Richard Heck
On 03/28/2016 03:50 AM, Georg Baum wrote: > Richard Heck wrote: > >> On 03/27/2016 03:09 PM, Jean-Marc Lasgouttes wrote: >>> Therefore, if can happen than plain_insetlayout_ is initialized before >>> sane_font and inherit_font have been initialized, which creates the >>> problems that Kornel sees.

Re: Static member initialization ordering bug

2016-03-28 Thread Georg Baum
Richard Heck wrote: > On 03/27/2016 03:09 PM, Jean-Marc Lasgouttes wrote: >> >> Therefore, if can happen than plain_insetlayout_ is initialized before >> sane_font and inherit_font have been initialized, which creates the >> problems that Kornel sees. >> >> What is the right construct to avoid thi

Re: Static member initialization ordering bug

2016-03-27 Thread Jean-Marc Lasgouttes
Actually this is exactly the idea I came up with afterwards. Thanks for the patch. Jmarc Le 27 mars 2016 22:33:12 GMT+02:00, Richard Heck a écrit : > >Idea attached. > >Richard

Re: Static member initialization ordering bug

2016-03-27 Thread Richard Heck
On 03/27/2016 04:43 PM, Kornel Benko wrote: > Am Sonntag, 27. März 2016 um 16:33:12, schrieb Richard Heck >> On 03/27/2016 03:09 PM, Jean-Marc Lasgouttes wrote: >>> Le 27/03/2016 19:37, Jean-Marc Lasgouttes a écrit : I suspect a compiler bug. What is your compiler? Can you try another on

Re: Static member initialization ordering bug

2016-03-27 Thread Kornel Benko
Am Sonntag, 27. März 2016 um 16:33:12, schrieb Richard Heck > On 03/27/2016 03:09 PM, Jean-Marc Lasgouttes wrote: > > Le 27/03/2016 19:37, Jean-Marc Lasgouttes a écrit : > >> I suspect a compiler bug. What is your compiler? Can you try another > >> one? > > > > I think I know what happens: in Text

Re: Static member initialization ordering bug

2016-03-27 Thread Richard Heck
On 03/27/2016 03:09 PM, Jean-Marc Lasgouttes wrote: > Le 27/03/2016 19:37, Jean-Marc Lasgouttes a écrit : >> I suspect a compiler bug. What is your compiler? Can you try another >> one? > > I think I know what happens: in TextClass.cpp, we have > InsetLayout DocumentClass::plain_insetlayout_; > > T

Static member initialization ordering bug (was: [PATCH] Fix regression with end-of-par markers)

2016-03-27 Thread Jean-Marc Lasgouttes
Le 27/03/2016 19:37, Jean-Marc Lasgouttes a écrit : I suspect a compiler bug. What is your compiler? Can you try another one? I think I know what happens: in TextClass.cpp, we have InsetLayout DocumentClass::plain_insetlayout_; The InsetLayout constructor says: InsetLayout::InsetLayout() : [..