vbt->setCursorFromCoordinates(0, first);
else if (vbt->cursor.y() > last)
vbt->setCursorFromCoordinates(0, last);
+
+ owner_->updateLayoutChoice();
}
void BufferView::Pimpl::update(LyXText * text, BufferView::UpdateCodes f)
{
- owner_->updateLayoutChoice();
-
if (!text->selection.set() && (f & SELECT)) {
text->selection.cursor = text->cursor;
}
+2003-03-18 John Levon <levon@movementarian.org>
+
+ * BufferView_pimpl.C (scrollDocView): add updateLayoutChoice(),
+ remove it from update()
+
+ * lyxfunc.C: update layout choice after an lfun
+
+ * text3.C: remove extra updateLayoutChoice()s
+
2003-03-18 John Levon <levon@movementarian.org>
* text.C: top_y change means full repaint, fix
break;
} // end of switch
+ view()->owner()->updateLayoutChoice();
+
exit_with_message:
sendDispatchMessage(getMessage(), ev, verbose);
}
// Highly editable inset, like math
UpdatableInset * inset = static_cast<UpdatableInset *>(inset_hit);
selection_possible = false;
- bv->owner()->updateLayoutChoice();
bv->owner()->message(inset->editMessage());
//inset->edit(bv, x, y, cmd.button());
// We just have to lock the inset before calling a PressEvent on it!
bv->text->selection.cursor = bv->text->cursor;
bv->text->cursor.x_fix(bv->text->cursor.x());
- bv->owner()->updateLayoutChoice();
if (bv->fitCursor())
selection_possible = false;