X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCompare.cpp;h=b2f64390f062b37a889431c2a7c23278cf0e5e2b;hb=3a6af2c1a49b2fc16f13bfd4f3230b0ad487237f;hp=f5046bd2e156dfcbfb11b5b64bc2f551eb6b5600;hpb=7e72c1d0d31c2b3155c4767f830cc861716ba357;p=lyx.git diff --git a/src/Compare.cpp b/src/Compare.cpp index f5046bd2e1..b2f64390f0 100644 --- a/src/Compare.cpp +++ b/src/Compare.cpp @@ -19,6 +19,7 @@ #include "insets/InsetText.h" +#include "support/docstream.h" #include "support/lassert.h" #include "support/lyxalgo.h" #include "support/qstring_helpers.h" @@ -61,10 +62,10 @@ public: : from(from_), to(to_) {} - DocRange(Buffer const * buf) + DocRange(Buffer const * buf) : + from(doc_iterator_begin(buf)), + to(doc_iterator_end(buf)) { - from = doc_iterator_begin(buf); - to = doc_iterator_end(buf); to.backwardPos(); }