]> git.lyx.org Git - features.git/commitdiff
* paragraph_funcs.C (breakParagraph): make sure to respect nesting
authorJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Sep 2006 09:38:40 +0000 (09:38 +0000)
committerJean-Marc Lasgouttes <lasgouttes@lyx.org>
Fri, 15 Sep 2006 09:38:40 +0000 (09:38 +0000)
when depth > 0 (bug 2445)/

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15002 a592a061-630c-0410-9148-cb99ea01b6c8

src/paragraph_funcs.C

index 252c5956dedf931a615ff4215406868fce48be21..20a284bb6fe6fab1fe5500513a64310068544b1d 100644 (file)
@@ -121,6 +121,12 @@ void breakParagraph(BufferParams const & bparams,
                tmp->layout(par.layout());
                tmp->setLabelWidthString(par.params().labelWidthString());
                tmp->params().depth(par.params().depth());
+       } else if (par.params().depth() > 0) {
+               Paragraph const & hook = pars[outerHook(par_offset, pars)];
+               tmp->layout(hook.layout());
+               // not sure the line below is useful
+               tmp->setLabelWidthString(par.params().labelWidthString());
+               tmp->params().depth(hook.params().depth());
        }
 
        bool const isempty = (par.allowEmpty() && par.empty());