diff --git a/src/frontends/qt4/GuiView.cpp b/src/frontends/qt4/GuiView.cpp index 850530ae05..ead525ec5f 100644 --- a/src/frontends/qt4/GuiView.cpp +++ b/src/frontends/qt4/GuiView.cpp @@ -39,6 +39,7 @@ #include "BufferView.h" #include "Converter.h" #include "Cursor.h" +#include "CutAndPaste.h" #include "Encoding.h" #include "ErrorList.h" #include "Format.h" @@ -994,6 +995,9 @@ void GuiView::setCurrentWorkArea(GuiWorkArea * wa) if (old_gwa == wa) return; + if (view()) + cap::saveSelection(view()->cursor()); + theGuiApp()->setCurrentView(this); d.current_work_area_ = wa; for (int i = 0; i != d.splitter_->count(); ++i) {