http://bugzilla.lyx.org/show_bug.cgi?id=2445

This is what I think to be the right fix for this bug. I contains
martin's fixed for 1.5, but adds another part. 

I want that in 1.4.3. Testers please (see the file indent.lyx from
pol).

JMarc

Index: src/paragraph_funcs.C
===================================================================
--- src/paragraph_funcs.C	(revision 14995)
+++ src/paragraph_funcs.C	(working copy)
@@ -120,6 +120,13 @@ void breakParagraph(BufferParams const &
 	if (flag) {
 		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());

Attachment: indent.lyx
Description: Binary data

Reply via email to