]> git.lyx.org Git - lyx.git/blobdiff - src/insets/inset.C
updates to minipage inset
[lyx.git] / src / insets / inset.C
index 61996ac77cb48bdade048d41689c3b517747f401..95e69d268254f45d95607cdc2a425f42e40d5bac 100644 (file)
@@ -72,10 +72,10 @@ string const Inset::EditMessage() const
 }
 
 
-LyXText * Inset::getLyXText(BufferView const * bv) const
+LyXText * Inset::getLyXText(BufferView const * bv, bool const) const
 {
     if (owner())
-           return owner()->getLyXText(bv);
+           return owner()->getLyXText(bv, false);
     else
            return bv->text;
 }
@@ -191,7 +191,8 @@ void UpdatableInset::scroll(BufferView * bv, int offset) const
        if (!scx && top_x >= 20)
            return;
        if ((top_x + offset) > 20)
-           scx += offset - (top_x - scx + offset - 20);
+           scx = 0;
+//         scx += offset - (top_x - scx + offset - 20);
        else
            scx += offset;
     } else {
@@ -210,7 +211,7 @@ void UpdatableInset::scroll(BufferView * bv, int offset) const
 ///  An updatable inset could handle lyx editing commands
 UpdatableInset::RESULT
 UpdatableInset::LocalDispatch(BufferView * bv, 
-                             int action, string const & arg) 
+                             kb_action action, string const & arg) 
 {
     if (!arg.empty() && (action==LFUN_SCROLL_INSET)) {
        if (arg.find('.') != arg.npos) {