+2005-08-26 Georg Baum <Georg.Baum@post.rwth-aachen.de>
+
+ * text2.C (cursorEnd): check for empty text (fixes bug 1998)
+
2005-08-19 Lars Gullik Bjønnes <larsbj@gullik.net>
* CutAndPaste.C (eraseSelectionHelper): fix bug 1920
// the final space exept if I have a spanning inset or one string
// is so long that we force a break.
pos_type end = cur.textRow().endpos();
+ if (end == 0)
+ // empty text, end-1 is no valid position
+ return;
bool boundary = false;
if (!cur.paragraph().isLineSeparator(end-1) &&
!cur.paragraph().isNewline(end-1))