]> git.lyx.org Git - lyx.git/blobdiff - src/InsetList.C
the spellcheck cleanup
[lyx.git] / src / InsetList.C
index 33200216ae2e138c20b034c0d9ab1f496c607fd0..ef21a07310844db2f847a41a67fd987bca28c7eb 100644 (file)
@@ -182,11 +182,9 @@ void InsetList::deleteInsetsLyXText(BufferView * bv)
        List::iterator it = list.begin();
        List::iterator end = list.end();
        for (; it != end; ++it) {
-               if (it->inset) {
-                       if (it->inset->isTextInset()) {
-                               static_cast<UpdatableInset*>
-                                       (it->inset)->deleteLyXText(bv, true);
-                       }
+               if (it->inset && it->inset->isTextInset()) {
+                       static_cast<UpdatableInset*>
+                               (it->inset)->deleteLyXText(bv, true);
                }
        }
 }