This fixes a compile error on 64bit systems. OK to apply?

Georg
Index: src/text2.C
===================================================================
RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/text2.C,v
retrieving revision 1.640
diff -u -p -r1.640 text2.C
--- src/text2.C	30 Jan 2006 16:34:30 -0000	1.640
+++ src/text2.C	4 Feb 2006 10:21:26 -0000
@@ -1255,7 +1255,7 @@ bool LyXText::deleteEmptyParagraphMechan
 	if (oldpar.empty() || (oldpar.size() == 1 && oldpar.isLineSeparator(0))) {
 		// Delete old par.
 		recordUndo(old, Undo::ATOMIC,
-			   max(old.pit() - 1, 0),
+			   max(old.pit() - 1, pit_type(0)),
 			   min(old.pit() + 1, old.lastpit()));
 		ParagraphList & plist = old.text()->paragraphs();
 		plist.erase(plist.begin() + old.pit());

Reply via email to