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

| [EMAIL PROTECTED] (Lars Gullik Bjønnes) writes:
| 
| | Can some of you relyx people have a look at case 638 and see if this
| | patch has any relevance?
| | 
| | It kindo seems that it fixes things, but I won't apply anything until
| | I have confirmations.

This patch became a bit larger than intended, due to ws changes.

This is the cut down version. 

| @@ -1400,7 +1400,8 @@ sub ConvertToLayout {
|      print "\nChanging $dummy $name to layout $layout" if $debug_on;
|  
|      # Nest if the layout stack has more than just "Standard" in it
| -    if ($#{$CurrentLayoutStack} > 0) {
| +    if ($#{$CurrentLayoutStack} > 0
| +     && $CurrentLayoutStack =~ /^$ListLayouts$/o) {
|       # Die here for sections & things that can't be nested!
|       print " Nesting!" if $debug_on;
|       print OUTFILE "\n\\begin_deeper ";
| @@ -1474,7 +1475,8 @@ sub EndLayout {
|      #     \end_deeper \begin_deeper in the LyX file. It's sloppy
|      #     but it works, and LyX will get rid of it when it
|      #     resaves the file.
| -    if ($#{$CurrentLayoutStack} > 0) {
| +    if ($#{$CurrentLayoutStack} > 0
| +     && $CurrentLayoutStack =~ /^$ListLayouts$/o) {
|       print " End Nesting!" if $debug_on;
|       print OUTFILE "\n\\end_deeper ";
|      }

-- 
        Lgb

Reply via email to