mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-09 18:52:46 +00:00
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:
parent
691a1be431
commit
35fa399edd
@ -63,6 +63,7 @@
|
|||||||
#include "frontends/alert.h"
|
#include "frontends/alert.h"
|
||||||
#include "frontends/FileDialog.h"
|
#include "frontends/FileDialog.h"
|
||||||
#include "frontends/FontMetrics.h"
|
#include "frontends/FontMetrics.h"
|
||||||
|
#include "frontends/Selection.h"
|
||||||
|
|
||||||
#include "graphics/Previews.h"
|
#include "graphics/Previews.h"
|
||||||
|
|
||||||
@ -1225,6 +1226,9 @@ bool BufferView::workAreaDispatch(FuncRequest const & cmd0)
|
|||||||
if (!cur.result().dispatched())
|
if (!cur.result().dispatched())
|
||||||
cur.dispatch(cmd);
|
cur.dispatch(cmd);
|
||||||
|
|
||||||
|
//Do we have a selection?
|
||||||
|
theSelection().haveSelection(cursor().selection());
|
||||||
|
|
||||||
// Redraw if requested and necessary.
|
// Redraw if requested and necessary.
|
||||||
if (cur.result().dispatched() && cur.result().update())
|
if (cur.result().dispatched() && cur.result().update())
|
||||||
return update(cur.result().update());
|
return update(cur.result().update());
|
||||||
|
@ -1603,7 +1603,6 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
needsUpdate |= (cur.pos() != cur.lastpos()) && cur.selection();
|
needsUpdate |= (cur.pos() != cur.lastpos()) && cur.selection();
|
||||||
theSelection().haveSelection(bv->cursor().selection());
|
|
||||||
|
|
||||||
// FIXME: The cursor flag is reset two lines below
|
// FIXME: The cursor flag is reset two lines below
|
||||||
// so we need to check here if some of the LFUN did touch that.
|
// so we need to check here if some of the LFUN did touch that.
|
||||||
|
@ -3498,7 +3498,6 @@ void InsetTabular::doDispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
cell(cur.idx())->dispatch(cur, cmd);
|
cell(cur.idx())->dispatch(cur, cmd);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
theSelection().haveSelection(bvcur.selection());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user