[EMAIL PROTECTED] (Lars Gullik Bj�nnes) writes:

| Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes:
| 
| | >>>>> "John" == John Levon <[EMAIL PROTECTED]> writes:
| | 
| | John> If you switch article class then chapter styles are not updated
| | John> visually. Lars ? It works with sections.
| | 
| | Indeed, it works with sections...
| 
| No it does not.
| (fonts should change, but they don't)
| 
| Actually there seems to be nothing wrong with the counter stuff at
| all, ... the layout and textclass on the other hand...
| 
| it seems that the only thing that changes is the textclass name, but
| not the textclass contents... so the layouts stay the same, and
| obviously you don't get any changes then...
| 
| I am currently suspecting some of the controller stuff...
| ControlDocument.

But it was the switchlayoutsbetweenclasses stuff...

This is the patch:

 Index: src/CutAndPaste.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/CutAndPaste.C,v
retrieving revision 1.67
diff -u -p -r1.67 CutAndPaste.C
--- src/CutAndPaste.C   21 Oct 2002 16:21:52 -0000      1.67
+++ src/CutAndPaste.C   1 Dec 2002 00:46:14 -0000
@@ -422,17 +422,32 @@ int CutAndPaste::SwitchLayoutsBetweenCla
                string const name = par->layout()->name();
                bool hasLayout = tclass2.hasLayout(name);

-               if (!hasLayout)
+               if (hasLayout)
+                       par->layout(tclass2[name]);
+               else
                        par->layout(tclass2.defaultLayout());

-- 
        Lgb

Reply via email to