]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathHull.cpp
Fix bug 5802 (http://bugzilla.lyx.org/show_bug.cgi?id=5802)
[lyx.git] / src / mathed / InsetMathHull.cpp
index 6347415e749b0d7086b503acd422e4b397c51d0d..15096fb9918f7426764708908ec01a8ee8279b84 100644 (file)
@@ -531,13 +531,13 @@ void InsetMathHull::numbered(row_type row, bool num)
        if (nonum_[row] && label_[row]) {
                delete label_[row];
                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.
+                       // The buffer is set at the end of readInset.
+                       // When parsing the inset, buffer_ is 0.
                        return;
                }
+               // We need an update of the Buffer reference cache.
+               // This is achieved by updateLabels().
                buffer().updateLabels();
        }
 }