Backport r30933

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_6_X@30943 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Pavel Sanda 2009-08-09 15:45:01 +00:00
parent ce0c916b5c
commit 2b56aa6f2d
2 changed files with 5 additions and 0 deletions

View File

@ -38,6 +38,7 @@
#include "BufferView.h"
#include "Converter.h"
#include "Cursor.h"
#include "CutAndPaste.h"
#include "Encoding.h"
#include "ErrorList.h"
#include "Format.h"
@ -946,6 +947,8 @@ GuiWorkArea const * GuiView::currentWorkArea() const
void GuiView::setCurrentWorkArea(GuiWorkArea * wa)
{
LASSERT(wa, return);
if (view())
cap::saveSelection(view()->cursor());
d.current_work_area_ = wa;
for (int i = 0; i != d.splitter_->count(); ++i) {
if (d.tabWorkArea(i)->setCurrentWorkArea(wa))

View File

@ -317,6 +317,8 @@ What's new
- Remove the black box around the work area that is visible with qt4.5.
- Fix middle-button pasting between different tabs (bug 6056).
* DOCUMENTATION AND LOCALIZATION