]> git.lyx.org Git - lyx.git/blobdiff - src/Compare.cpp
Customization.lyx: use change tracking for the changes made in 0eb651a2
[lyx.git] / src / Compare.cpp
index f5046bd2e156dfcbfb11b5b64bc2f551eb6b5600..b2f64390f062b37a889431c2a7c23278cf0e5e2b 100644 (file)
@@ -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();
        }