]> git.lyx.org Git - features.git/commitdiff
use accessor functions if possible
authorAndré Pönitz <poenitz@gmx.net>
Fri, 13 Aug 2004 22:48:48 +0000 (22:48 +0000)
committerAndré Pönitz <poenitz@gmx.net>
Fri, 13 Aug 2004 22:48:48 +0000 (22:48 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8917 a592a061-630c-0410-9148-cb99ea01b6c8

src/insets/insettabular.C

index f3e49bf25d514596999056981a00e5895020c889..08693477efb85ebff1beae7d716f361789ddc12d 100644 (file)
@@ -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;