if (pit->autoDelete()) {
removed = true;
pos_type const pos = pit.getPos();
-
+
par->erase(pos);
+ // get the next valid iterator position
+ pit = par->InsetIterator(pos);
+ // ensure we have a valid end iterator
+ pend = par->inset_iterator_end();
+
if (cur_par == par) {
if (cur_pos > pos)
--cur_pos;
+2002-02-19 Allan Rae <rae@lyx.org>
+
+ * BufferView2.C (removeAutoInsets): fix remaining freed memory read.
+ Iterators might be simple to use but they also get invalidated.
+
2002-02-18 Angus Leeming <a.leeming@ic.ac.uk>
* Chktex.C: