]> git.lyx.org Git - lyx.git/blobdiff - src/PosIterator.C
the spellcheck cleanup
[lyx.git] / src / PosIterator.C
index 61c0ec70911367b7bbc7de089de9cfb3bf3f7262..59ff597d8ec593ff717052c791f4f0e8e119b6f0 100644 (file)
@@ -38,7 +38,7 @@ PosIterator & PosIterator::operator++()
                                ParagraphList * pl = inset->getParagraphs(p.index);
                                if (pl) {
                                        p.index++;
-                                       stack_.push(PosIteratorItem(pl));
+                                       stack_.push(PosIteratorItem(pl, pl->begin(), 0));
                                        return *this;
                                }
                        }
@@ -126,12 +126,6 @@ PosIterator::PosIterator(ParagraphList * pl, ParagraphList::iterator pit,
 }
 
 
-PosIterator::PosIterator(ParagraphList * pl)
-{
-       stack_.push(PosIteratorItem(pl, pl->begin(), 0));
-}
-
-
 PosIterator::PosIterator(BufferView & bv)
 {
        LyXText * text = bv.getLyXText();