#include "lcolorcache.h"
#include "qt_helpers.h"
-
+#include "BufferView.h"
#include "debug.h"
#include "funcrequest.h"
#include "LColor.h"
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;