]> git.lyx.org Git - features.git/blobdiff - src/insets/insettext.C
This should clean up the language stuff a bit and a small new check for
[features.git] / src / insets / insettext.C
index a2870f1e65dc0da4b2c41d3325d1267e1325384c..536851c07478f78d1acd7e2b73f3d7a9dfc1b6ba 100644 (file)
@@ -1801,7 +1801,7 @@ LyXText * InsetText::getLyXText(BufferView const * lbv,
                        return the_locking_inset->getLyXText(bv);
                }
                return cached_text.get();
-       } else if (it->second.remove) {
+       } else if (it != cache.end() && it->second.remove) {
                if (locked) {
                        saveLyXTextState(it->second.text.get());
                } else {