Andre Poenitz wrote:

> Anyway, that's rather cosmetical. Of course it needs to be fixed, but
> I'd rather have your sanitize.diff in, and I'll have a closer look in
> the evening.

This seems to be the culprit. (even if your change seems reasonable and
other parts may be adjusted instead)

Alfredo
Index: text.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text.C,v
retrieving revision 1.483
diff -u -p -u -r1.483 text.C
--- text.C	24 Oct 2003 15:04:15 -0000	1.483
+++ text.C	24 Oct 2003 22:16:14 -0000
@@ -82,8 +82,8 @@ unsigned int maxParagraphWidth(Paragraph
 	unsigned int width = 0;
 	ParagraphList::const_iterator pit = plist.begin();
 	ParagraphList::const_iterator end = plist.end();
-		for (; pit != end; ++pit)
-			width = std::max(width, pit->width);
+	for (; pit != end; ++pit)
+		width = std::max(width, pit->width);
 	return width;
 }
 
@@ -473,8 +473,7 @@ void LyXText::rowBreakPoint(ParagraphLis
 	
 	// maximum pixel width of a row.
 	int width = workWidth()
-		- rightMargin(*pit, *bv()->buffer(), row)
-		- leftMargin(pit, row);
+		- rightMargin(*pit, *bv()->buffer(), row);
 
 	// inset->textWidth() returns -1 via workWidth(),
 	// but why ?

Reply via email to