]> git.lyx.org Git - lyx.git/blobdiff - src/dociterator.C
Fix bug 886 and others not reported related with the document paper size.
[lyx.git] / src / dociterator.C
index 53a0d2ebc77b9c749c1869c06d1c9aa5f5d2a213..4243e639cce9867bdce38313e7ad65373f5f3a17 100644 (file)
@@ -30,12 +30,12 @@ using std::endl;
 // We could be able to get rid of this if only every BufferView were
 // associated to a buffer on construction.
 DocIterator::DocIterator()
-       : inset_(0)
+       : inset_(0), boundary_(false)
 {}
 
 
 DocIterator::DocIterator(InsetBase & inset)
-       : inset_(&inset)
+       : inset_(&inset), boundary_(false)
 {}
 
 
@@ -540,3 +540,10 @@ std::ostream & operator<<(std::ostream & os, StableDocIterator const & dit)
                os << " " << dit.data_[i] << "\n";
        return os;
 }
+
+
+bool operator==(StableDocIterator const & dit1, StableDocIterator const & dit2)
+{
+       return dit1.data_ == dit2.data_;
+}
+