Remove test code in the LFUN_QUIT handler as it leads to a crash when no

buffer is present.


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8530 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Angus Leeming 2004-03-25 17:24:13 +00:00
parent 31c24b4002
commit 53ec3603e7
2 changed files with 5 additions and 16 deletions

View File

@ -1,3 +1,8 @@
2004-03-24 Angus Leeming <leeming@lyx.org>
* lyxfunc.C (dispatch): remove test code in LFUN_QUIT handler as
it leads to a crash when no buffer is present.
2004-03-25 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
Martin Vermeer <martin.vermeer@hut.fi>

View File

@ -687,22 +687,6 @@ void LyXFunc::dispatch(FuncRequest const & cmd, bool verbose)
break;
case LFUN_QUIT:
#if 1
// test speed of DocumentIterator
lyxerr << "start" << endl;
for (DocumentIterator it(owner->buffer()->inset()), end;
it != end; it.forwardPos())
;
lyxerr << "end" << endl;
#endif
#if 1
// show some sizes
lyxerr << "sizeof Paragraph: " << sizeof(Paragraph) << endl;
lyxerr << "sizeof Spacing: " << sizeof(Spacing) << endl;
lyxerr << "sizeof LyXLength: " << sizeof(LyXLength) << endl;
lyxerr << "sizeof LyXFont: " << sizeof(LyXFont) << endl;
lyxerr << "sizeof LyXAlignment: " << sizeof(LyXAlignment) << endl;
#endif
QuitLyX();
break;