]> git.lyx.org Git - lyx.git/blobdiff - src/cursor.C
Scons: handle the case when qt4 is in system directories
[lyx.git] / src / cursor.C
index 4d95d0de0b632c4c3d09b0f0b0c3f2741f21616d..4dacb3674a0d1efb93fec32716b6c8351f4d519d 100644 (file)
@@ -403,6 +403,20 @@ void LCursor::getPos(int & x, int & y) const
 }
 
 
+Row & LCursor::textRow()
+{
+       BOOST_ASSERT(!paragraph().rows().empty());
+       return paragraph().getRow(pos(), boundary());
+}
+
+
+Row const & LCursor::textRow() const
+{
+       BOOST_ASSERT(!paragraph().rows().empty());
+       return paragraph().getRow(pos(), boundary());
+}
+
+
 void LCursor::resetAnchor()
 {
        anchor_ = *this;