sa...@lyx.org wrote:
> Author: sanda
> Date: Sun Aug  9 16:27:50 2009
> New Revision: 30933
> URL: http://www.lyx.org/trac/changeset/30933
> 
> Log:
> Fix #6120. Selection not set when switching to a different tab.
> http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg153514.html

Juergen?

> 
> Modified:
>    lyx-devel/trunk/src/frontends/qt4/GuiView.cpp
> 
> Modified: lyx-devel/trunk/src/frontends/qt4/GuiView.cpp
> ==============================================================================
> --- lyx-devel/trunk/src/frontends/qt4/GuiView.cpp     Sun Aug  9 16:07:44 
> 2009        (r30932)
> +++ lyx-devel/trunk/src/frontends/qt4/GuiView.cpp     Sun Aug  9 16:27:50 
> 2009        (r30933)
> @@ -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 @@
>       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) {

Reply via email to