]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView_pimpl.C
improved comments in removeAutoInsets()
[lyx.git] / src / BufferView_pimpl.C
index 1efca6de2f60ea1bf17e1c460137c80d3a86da9d..220390374e5b8989bf4b948f6a9abfefda0a3c84 100644 (file)
@@ -3465,9 +3465,9 @@ void BufferView::Pimpl::gotoInset(vector<Inset::Code> const & codes,
  
        if (!bv_->text->gotoNextInset(bv_, codes, contents)) {
                if (bv_->text->cursor.pos() 
-                   || bv_->text->cursor.par() != bv_->text->firstParagraph()) {
+                   || bv_->text->cursor.par() != bv_->text->ownerParagraph()) {
                        LyXCursor tmp = bv_->text->cursor;
-                       bv_->text->cursor.par(bv_->text->firstParagraph());
+                       bv_->text->cursor.par(bv_->text->ownerParagraph());
                        bv_->text->cursor.pos(0);
                        if (!bv_->text->gotoNextInset(bv_, codes, contents)) {
                                bv_->text->cursor = tmp;