Helge Hafting wrote:
To reproduce:
lyx file1.lyx file2.lyx (existing files)
close one, using ctrl+w or the menu. LyX dies.

I think I fixed that in rev 21580. Please svn update and try again.

Abdel.

Author: younes
Date: Tue Nov 13 11:47:40 2007
New Revision: 21580

URL: http://www.lyx.org/trac/changeset/21580
Log:
brown paper bag...

Modified:
    lyx-devel/trunk/src/frontends/qt4/GuiView.cpp

Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.cpp
URL: http://www.lyx.org/trac/file/lyx-devel/trunk/src/frontends/qt4/GuiView.cpp?rev=21580
==============================================================================
--- lyx-devel/trunk/src/frontends/qt4/GuiView.cpp (original)
+++ lyx-devel/trunk/src/frontends/qt4/GuiView.cpp Tue Nov 13 11:47:40 2007
@@ -957,7 +957,7 @@
                        continue;

                // We found and removed the GuiWorkArea.
-               if (twa->count()) {
+               if (!twa->count()) {
                        // No more WorkAreas in this tab group, so delete it.
                        delete twa;
                        break;



Reply via email to