>>>>> "Peter" == Peter Suetterlin <[EMAIL PROTECTED]> writes:
Peter> I just got a (reproducible) crash of lyx 1.1.5pre3 when editing
Peter> the translated Customisation document.
Peter> I was editing a LyX-Code inset and wanted to delete a line with
Peter> Control-k (bound to line-delete-forward; emacs mode):
It seems that this happens when using line-delete-forward on a line
which begins with spaces. Presumably the spaces get deleted somewhere
and then LyX crahes when trying to access the last characters which
are now non-existant.
JMarc
PS: I append the purify log for reference.
COR: Fatal core dump
This is occurring while in:
_p921static [libgcc.a]
abort [libc.so.1]
lyx::abort() [abort.C:9]
LyXParagraph::GetChar(int)const [LAssert.h:16]
void Assert(A assertion)
{
if (!assertion) {
=> lyx::abort();
}
}
LyXParagraph::IsSeparator(int)const [paragraph.C:4183]
bool LyXParagraph::IsSeparator(size_type pos) const
{
=> return IsSeparatorChar(GetChar(pos));
}
SetCursorIntern__C7LyXTextP12LyXParagraphib [text2.C:3376]
if (cursor.pos &&
(cursor.pos == cursor.par->Last() ||
cursor.par->IsSeparator(cursor.pos)
|| (cursor.par->table &&
cursor.par->IsNewline(cursor.pos))
=> )) {
current_font =
cursor.par->GetFontSettings(cursor.pos - 1);
real_current_font = GetFont(cursor.par,
cursor.pos - 1);
} else {
SetCursor__C7LyXTextP12LyXParagraphib [text2.C:3121]
LyXParagraph::size_type pos, bool setfont) const
{
LyXCursor old_cursor = cursor;
=> SetCursorIntern(par, pos, setfont);
DeleteEmptyParagraphMechanism(old_cursor);
}
CutSelection__7LyXTextb [text2.C:2281]
ClearSelection();
cursor = sel_start_cursor;
=> SetCursor(cursor.par, cursor.pos);
sel_cursor = cursor;
UpdateCounters(cursor.row);
}
LyXText::DeleteLineForward() [text.C:3216]
if (selection == false) {
DeleteWordForward();
} else {
=> CutSelection();
}
}
}
LyXFunc::Dispatch(int,const char*) [lyxfunc.C:1815]
Received signal 6 (SIGABRT - Abort)
Signal mask:
Pending signals: