mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-22 16:37:28 +00:00
* lyxfunc.C (getStatus): fix handling of LFUN_RUNCHKTEX (bug 2831)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@15101 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
f2dcbec8cb
commit
2e1ba6d837
@ -754,27 +754,22 @@ void InsetTabular::doDispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
row_type rs, re;
|
row_type rs, re;
|
||||||
col_type cs, ce;
|
col_type cs, ce;
|
||||||
getSelection(cur, rs, re, cs, ce);
|
getSelection(cur, rs, re, cs, ce);
|
||||||
|
LCursor tmpcur = cur;
|
||||||
for (row_type i = rs; i <= re; ++i) {
|
for (row_type i = rs; i <= re; ++i) {
|
||||||
for (col_type j = cs; j <= ce; ++j) {
|
for (col_type j = cs; j <= ce; ++j) {
|
||||||
// cursor follows cell:
|
// cursor follows cell:
|
||||||
cur.idx() = tabular.getCellNumber(i, j);
|
tmpcur.idx() = tabular.getCellNumber(i, j);
|
||||||
// select this cell only:
|
// select this cell only:
|
||||||
cur.pos() = 0;
|
tmpcur.pit() = 0;
|
||||||
cur.resetAnchor();
|
tmpcur.pos() = 0;
|
||||||
cur.pos() = cur.top().lastpos();
|
tmpcur.resetAnchor();
|
||||||
cur.setCursor(cur);
|
tmpcur.pit() = tmpcur.lastpit();
|
||||||
cur.setSelection();
|
tmpcur.pos() = tmpcur.top().lastpos();
|
||||||
cell(cur.idx())->dispatch(cur, cmd);
|
tmpcur.setCursor(tmpcur);
|
||||||
|
tmpcur.setSelection();
|
||||||
|
cell(tmpcur.idx())->dispatch(tmpcur, cmd);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Restore original selection
|
|
||||||
cur.idx() = tabular.getCellNumber(rs, cs);
|
|
||||||
cur.pos() = 0;
|
|
||||||
cur.resetAnchor();
|
|
||||||
cur.idx() = tabular.getCellNumber(re, ce);
|
|
||||||
cur.pos() = cur.top().lastpos();
|
|
||||||
cur.setCursor(cur);
|
|
||||||
cur.setSelection();
|
|
||||||
break;
|
break;
|
||||||
} else {
|
} else {
|
||||||
cell(cur.idx())->dispatch(cur, cmd);
|
cell(cur.idx())->dispatch(cur, cmd);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user