From: Abdelrazak Younes Date: Sat, 5 Sep 2009 15:40:07 +0000 (+0000) Subject: X11 compile fix, sorry. X-Git-Tag: 2.0.0~5552 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=475fb5e65b29223712aa8826fd065c23c96b9565;p=lyx.git X11 compile fix, sorry. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@31293 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/src/frontends/qt4/GuiApplication.cpp b/src/frontends/qt4/GuiApplication.cpp index ef0427d5ba..da28c02317 100644 --- a/src/frontends/qt4/GuiApplication.cpp +++ b/src/frontends/qt4/GuiApplication.cpp @@ -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;