]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.h
Fix bug 4166: Crash when middle button click on inset label
[lyx.git] / src / Cursor.h
index 8b76fb35d451fd94a93c29079b3ce69a808c84ed..edb2f862ccccdce67427295326ce405639f80d8b 100644 (file)
@@ -72,8 +72,11 @@ public:
        /// selection active?
        bool & selection() { return selection_; }
        /// do we have a multicell selection?
-       bool isMultiCell() const 
+       bool selIsMultiCell() const 
                { return selection_ && selBegin().idx() != selEnd().idx(); }
+       /// do we have a multiline selection?
+       bool selIsMultiLine() const 
+               { return selection_ && selBegin().pit() != selEnd().pit(); }
        /// did we place the anchor?
        bool mark() const { return mark_; }
        /// did we place the anchor?