]> git.lyx.org Git - lyx.git/commitdiff
X11 compile fix, sorry.
authorAbdelrazak Younes <younes@lyx.org>
Sat, 5 Sep 2009 15:40:07 +0000 (15:40 +0000)
committerAbdelrazak Younes <younes@lyx.org>
Sat, 5 Sep 2009 15:40:07 +0000 (15:40 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31293 a592a061-630c-0410-9148-cb99ea01b6c8

src/frontends/qt4/GuiApplication.cpp

index ef0427d5ba9a3c432620598045b947b734a779aa..da28c0231755c587d6058de749be80bd81463bf2 100644 (file)
@@ -1638,7 +1638,7 @@ bool GuiApplication::x11EventFilter(XEvent * xev)
                if (xev->xselectionrequest.selection != XA_PRIMARY)
                        break;
                LYXERR(Debug::SELECTION, "X requested selection.");
-               BufferView * bv = current_view_->view();
+               BufferView * bv = current_view_->currentBufferView();
                if (bv) {
                        docstring const sel = bv->requestSelection();
                        if (!sel.empty())
@@ -1650,7 +1650,7 @@ bool GuiApplication::x11EventFilter(XEvent * xev)
                if (xev->xselectionclear.selection != XA_PRIMARY)
                        break;
                LYXERR(Debug::SELECTION, "Lost selection.");
-               BufferView * bv = current_view_->view();
+               BufferView * bv = current_view_->currentBufferView();
                if (bv)
                        bv->clearSelection();
                break;