Munzir Taha wrote:

> On Sunday 16 November 2003 00:16, Nirmal Govind wrote:
> 
>> > - Why LyX: "Bugs (if any) are fixed pretty soon" ...
>> >   have a look at http://bugzilla.lyx.org and count the open
>> >   bugs ...
>>
>> hmm... 1255 (new/assigned/verified/reopened) + 70 (unconfirmed) ...
>> ok, I'll change that.. I should probably rephrase it and say
>> "Extremely responsive developers and users" .. ;-)
> If some one fixed bug #1404, I will vote with you.
> http://bugzilla.lyx.org/show_bug.cgi?id=1404
> Other wise LyX and the people behind it is great but not with
> Extremely responsive developers and users ;)

Please try the attached patch. It was made against the lyx 1.3.x cvs 
sources so you may need to apply it 'by hand' to your own copy of 
lyx-1.3.3. I have not tested it, but can confirm that it does compile 
and that it does appear to 'do the right thing'. Ie, there is an 
obvious ordering bug in the source.

Please tell us whether the patch fixes the problem.

Kind regards,

-- 
Angus
? build-qt
? build-xforms
? munzir.diff
Index: src/paragraph.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/paragraph.C,v
retrieving revision 1.235.2.1
diff -u -p -r1.235.2.1 paragraph.C
--- src/paragraph.C	12 Feb 2003 21:01:18 -0000	1.235.2.1
+++ src/paragraph.C	17 Nov 2003 12:05:37 -0000
@@ -1154,12 +1154,6 @@ Paragraph * Paragraph::TeXOnePar(Buffer 
 			os << '\n';
 			texrow.newline();
 		}
-
-		if (!params().spacing().isDefault()
-			&& (!next_ || !next_->hasSameLayout(this))) {
-			os << params().spacing().writeEnvirEnd() << '\n';
-			texrow.newline();
-		}
 	}
 
 	// we don't need it for the last paragraph!!!
@@ -1182,6 +1176,14 @@ Paragraph * Paragraph::TeXOnePar(Buffer 
 					    "$$lang",
 					    language->babel())
 				   << endl;
+			texrow.newline();
+		}
+	}
+
+	if ((in == 0) || !in->forceDefaultParagraphs(in)) {
+		if (!params().spacing().isDefault()
+			&& (!next_ || !next_->hasSameLayout(this))) {
+			os << params().spacing().writeEnvirEnd() << '\n';
 			texrow.newline();
 		}
 	}

Reply via email to