]> git.lyx.org Git - lyx.git/blobdiff - src/pariterator.h
Fix bug 2485 and crash on middle mouse paste on math
[lyx.git] / src / pariterator.h
index 1dbd705d7bdff5bd50804c50600a936e8cfcbded..dac6626b5bb442c299de272f76ebaf7d749bf272 100644 (file)
@@ -13,6 +13,7 @@
 #define PARITERATOR_H
 
 #include "dociterator.h"
+#include "ParagraphList_fwd.h"
 
 #include "support/types.h"
 
@@ -24,7 +25,6 @@
 
 class InsetBase;
 class LyXText;
-class ParagraphList;
 
 
 class ParIterator : public std::iterator<std::forward_iterator_tag, Paragraph>,
@@ -66,6 +66,9 @@ public:
        ///
        lyx::pit_type pit() const;
        ///
+       /// return the paragraph this cursor is in
+       pit_type & pit() { return DocIterator::pit(); }
+
        ParagraphList & plist() const;
 };