mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-10 20:04:46 +00:00
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:
parent
886e9dbfab
commit
8d7b7175a4
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user