]> git.lyx.org Git - lyx.git/blobdiff - src/text3.C
prevent crash when inserting minipage in table cell,
[lyx.git] / src / text3.C
index a5a04b9da4784456080be80ee05cb379a597dbb6..a468a7289665a3590980354f8cc5dc346177fa62 100644 (file)
@@ -72,7 +72,7 @@ namespace {
                        if (lt->isInInset())
                                bv->updateInset(lt->inset_owner);
                        else
-                               bv->toggleToggle();
+                               bv->repaint();
                }
                if (!lt->isInInset()) {
                        bv->update(lt, BufferView::SELECT);
@@ -97,7 +97,7 @@ namespace {
        // check if the given co-ordinates are inside an inset at the
        // given cursor, if one exists. If so, the inset is returned,
        // and the co-ordinates are made relative. Otherwise, 0 is returned.
-       InsetOld * checkInset(BufferView * bv, LyXText & text,
+InsetOld * checkInset(BufferView * /*bv*/, LyXText & text,
                LyXCursor const & cur, int & x, int & y)
        {
                lyx::pos_type const pos = cur.pos();
@@ -684,10 +684,6 @@ InsetOld::RESULT LyXText::dispatch(FuncRequest const & cmd)
                bv->update(this, BufferView::UPDATE);
                cursorPrevious();
                finishChange(bv, false);
-               // was:
-               // finishUndo();
-               // moveCursorUpdate(bv, false, false);
-               // owner_->view_state_changed();
                break;
 
        case LFUN_NEXT:
@@ -1334,7 +1330,7 @@ InsetOld::RESULT LyXText::dispatch(FuncRequest const & cmd)
                if (!bv->text->selection.set())
                        bv->update(BufferView::UPDATE);
                bv->text->setSelection();
-               bv->screen().toggleToggle(bv->text, bv);
+               bv->repaint();
                bv->fitCursor();
                break;
        }