From 7914e9c40166eabe0e816cb65260a04c8cf455db Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20P=C3=B6nitz?= Date: Fri, 13 Aug 2004 22:48:48 +0000 Subject: [PATCH] use accessor functions if possible git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8917 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/insets/insettabular.C | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/insets/insettabular.C b/src/insets/insettabular.C index f3e49bf25d..08693477ef 100644 --- a/src/insets/insettabular.C +++ b/src/insets/insettabular.C @@ -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; -- 2.39.2