From 349aac558e2593ddba9ebc16564f5f811eec3141 Mon Sep 17 00:00:00 2001 From: Jean-Marc Lasgouttes Date: Fri, 15 Sep 2006 09:38:40 +0000 Subject: [PATCH] * paragraph_funcs.C (breakParagraph): make sure to respect nesting 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 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/paragraph_funcs.C b/src/paragraph_funcs.C index 252c5956de..20a284bb6f 100644 --- a/src/paragraph_funcs.C +++ b/src/paragraph_funcs.C @@ -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()); -- 2.39.5