]> git.lyx.org Git - lyx.git/blobdiff - src/BufferView.C
ws changes mostly
[lyx.git] / src / BufferView.C
index 2be15d5e9009e3e493bc6c649a330df6f615f08f..ecc66f0e05e8c4a1aee8cb3c8ced8de450c16f7d 100644 (file)
@@ -290,8 +290,7 @@ void BufferView::hideCursor()
        screen().hideCursor();
 }
 
-
-LyXText * BufferView::getLyXText() const
+LyXText * BufferView::getLyXText()
 {
        LyXText * text = cursor().innerText();
        BOOST_ASSERT(text);
@@ -299,6 +298,14 @@ LyXText * BufferView::getLyXText() const
 }
 
 
+LyXText const * BufferView::getLyXText() const
+{
+       LyXText const * text = cursor().innerText();
+       BOOST_ASSERT(text);
+       return text;
+}
+
+
 void BufferView::haveSelection(bool sel)
 {
        pimpl_->workarea().haveSelection(sel);
@@ -326,7 +333,6 @@ void BufferView::setCursor(ParIterator const & par, lyx::pos_type pos)
        cursor().selection() = false;
 }
 
-
 void BufferView::putSelectionAt(DocIterator const & cur,
                                int length, bool backwards)
 {