lyx --export text file.lyx crashed with a segfault in hideDialogs(). The patch fixeth the crash. OK?

I'm not sure why this was happening only with text and not (say) with PDF. So maybe there is a more fundamental issue somewhere.

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Index: LyX.cpp
===================================================================
--- LyX.cpp	(revision 19273)
+++ LyX.cpp	(working copy)
@@ -383,7 +383,7 @@
 
 void LyX::hideDialogs(std::string const & name, Inset * inset) const
 {
-	if (quitting)
+	if (quitting || !use_gui)
 		return;
 
 	vector<int> const & view_ids = pimpl_->application_->gui().viewIds();

Reply via email to