]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/QWorkArea.C
rename LFUN enum values according to their command (as used in th minibuffer/bind...
[lyx.git] / src / frontends / qt4 / QWorkArea.C
index 14bcf0d1915993515ba0e483715731f783d734d3..b639d8f28f3b7e36ba06aa7f0a70f596efa05e49 100644 (file)
@@ -19,7 +19,7 @@
 
 #include "lcolorcache.h"
 #include "qt_helpers.h"
-
+#include "BufferView.h"
 #include "debug.h"
 #include "funcrequest.h"
 #include "LColor.h"
@@ -230,7 +230,8 @@ void QWorkArea::adjustViewWithScrollBar(int action)
 
 void QWorkArea::haveSelection(bool own) const
 {
-       wa_ptr = this;
+       /// \todo ask X11 and MAC devels why this wa_ptr is useful.
+       wa_ptr = const_cast<QWorkArea*>(this);
 
        if (!QApplication::clipboard()->supportsSelection())
                return;