]> git.lyx.org Git - features.git/commitdiff
* InsetMathHull (numbered):
authorJürgen Spitzmüller <spitz@lyx.org>
Mon, 2 Feb 2009 13:27:57 +0000 (13:27 +0000)
committerJürgen Spitzmüller <spitz@lyx.org>
Mon, 2 Feb 2009 13:27:57 +0000 (13:27 +0000)
- prevent NULL pointer (bug 5688).

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

src/mathed/InsetMathHull.cpp

index 083a67d4fece7349ed46bba62e60ab1c9892f47e..6347415e749b0d7086b503acd422e4b397c51d0d 100644 (file)
@@ -533,6 +533,11 @@ void InsetMathHull::numbered(row_type row, bool num)
                label_[row] = 0;
                // We need an update of the Buffer reference cache.
                // This is achieved by updateLabels().
+               if (!buffer_) {
+                       // The buffer is set at the end of readInset
+                       // when parsing the inset, buffer_ is 0.
+                       return;
+               }
                buffer().updateLabels();
        }
 }