]> git.lyx.org Git - features.git/commitdiff
Remove test code in the LFUN_QUIT handler as it leads to a crash when no
authorAngus Leeming <leeming@lyx.org>
Thu, 25 Mar 2004 17:24:13 +0000 (17:24 +0000)
committerAngus Leeming <leeming@lyx.org>
Thu, 25 Mar 2004 17:24:13 +0000 (17:24 +0000)
buffer is present.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8530 a592a061-630c-0410-9148-cb99ea01b6c8

src/ChangeLog
src/lyxfunc.C

index 993b74357223951cc5e695fa0c84d3af497921c1..cc42a2a80f2a31cb808c57d618c309bea5612bb8 100644 (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>
 
index 0403030ebcb3c27bac49ff4f03a8ae3dcb9f68bf..68ba1ef6c61d1b607204089c33003b18390e9227 100644 (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;