diff --git a/src/BufferView.cpp b/src/BufferView.cpp index 2a5b39f489..40596dd4f4 100644 --- a/src/BufferView.cpp +++ b/src/BufferView.cpp @@ -2453,6 +2453,8 @@ bool samePar(DocIterator const & a, DocIterator const & b) return true; if (a.empty() || b.empty()) return false; + if (a.depth() != b.depth()) + return false; return &a.innerParagraph() == &b.innerParagraph(); }