]> git.lyx.org Git - features.git/commitdiff
Prevent assertion when closing LyX with GuiTabular open.
authorVincent van Ravesteijn <vfr@lyx.org>
Sun, 8 Feb 2009 19:44:53 +0000 (19:44 +0000)
committerVincent van Ravesteijn <vfr@lyx.org>
Sun, 8 Feb 2009 19:44:53 +0000 (19:44 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@28404 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiTabular.cpp

index b2dee188bf71d19829c331277af1d5bdd9a223a8..bc00625d8a47fcdea2636328886b1410e05f6849 100644 (file)
@@ -975,8 +975,10 @@ bool GuiTabular::initialiseParams(string const & data)
 
 void GuiTabular::clearParams()
 {
-       InsetTabular tmp(const_cast<Buffer &>(buffer()));
-       tabular_ = tmp.tabular;
+       if (isBufferAvailable()) {
+               InsetTabular tmp(const_cast<Buffer &>(buffer()));
+               tabular_ = tmp.tabular;
+       }
        active_cell_ = Tabular::npos;
 }