mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
use accessor functions if possible
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8917 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
596a2ca159
commit
7914e9c401
@ -533,7 +533,7 @@ void InsetTabular::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
int actcol = tabular.column_of_cell(actcell);
|
||||
int column = actcol;
|
||||
if (cur.bv().top_y() + cur.bv().painter().paperHeight()
|
||||
< yo_ + tabular.getHeightOfTabular())
|
||||
< yo() + tabular.getHeightOfTabular())
|
||||
{
|
||||
cur.bv().scrollDocView(
|
||||
cur.bv().top_y() + cur.bv().painter().paperHeight());
|
||||
@ -549,10 +549,10 @@ void InsetTabular::priv_dispatch(LCursor & cur, FuncRequest & cmd)
|
||||
//if (hasSelection())
|
||||
// cur.selection() = false;
|
||||
int column = tabular.column_of_cell(cur.idx());
|
||||
if (yo_ < 0) {
|
||||
if (yo() < 0) {
|
||||
cur.bv().scrollDocView(
|
||||
cur.bv().top_y() - cur.bv().painter().paperHeight());
|
||||
if (yo_ > 0)
|
||||
if (yo() > 0)
|
||||
cur.idx() = column;
|
||||
else
|
||||
cur.idx() = tabular.getCellBelow(first_visible_cell) + column;
|
||||
|
Loading…
Reference in New Issue
Block a user