Fix #6120. Selection not set when switching to a different tab.

http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg153514.html


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30933 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-08-09 14:27:50 +00:00
parent 886e9dbfab
commit 8d7b7175a4

View File

@ -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) {