mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-26 22:17:41 +00:00
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:
parent
31c24b4002
commit
53ec3603e7
@ -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>
|
||||
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user