Syncronize with 1.5. This stuff was uncommitted in y tree actually.

* src/BufferView.cpp (workAreaDispatch): set selection status here

	* src/Text3.cpp (dispatch):
	* src/InsetTabular.cpp (doDispatch): and not here


git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19396 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jean-Marc Lasgouttes 2007-08-10 10:21:09 +00:00
parent 691a1be431
commit 35fa399edd
3 changed files with 4 additions and 2 deletions

View File

@ -63,6 +63,7 @@
#include "frontends/alert.h"
#include "frontends/FileDialog.h"
#include "frontends/FontMetrics.h"
#include "frontends/Selection.h"
#include "graphics/Previews.h"
@ -1225,6 +1226,9 @@ bool BufferView::workAreaDispatch(FuncRequest const & cmd0)
if (!cur.result().dispatched())
cur.dispatch(cmd);
//Do we have a selection?
theSelection().haveSelection(cursor().selection());
// Redraw if requested and necessary.
if (cur.result().dispatched() && cur.result().update())
return update(cur.result().update());

View File

@ -1603,7 +1603,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
}
needsUpdate |= (cur.pos() != cur.lastpos()) && cur.selection();
theSelection().haveSelection(bv->cursor().selection());
// FIXME: The cursor flag is reset two lines below
// so we need to check here if some of the LFUN did touch that.

View File

@ -3498,7 +3498,6 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
cell(cur.idx())->dispatch(cur, cmd);
break;
}
theSelection().haveSelection(bvcur.selection());
}