mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
updateLayoutChoice move
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@6530 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
769452eb15
commit
b596bc71f2
@ -379,6 +379,8 @@ void BufferView::Pimpl::scrollDocView(int value)
|
||||
vbt->setCursorFromCoordinates(0, first);
|
||||
else if (vbt->cursor.y() > last)
|
||||
vbt->setCursorFromCoordinates(0, last);
|
||||
|
||||
owner_->updateLayoutChoice();
|
||||
}
|
||||
|
||||
|
||||
@ -568,8 +570,6 @@ void BufferView::Pimpl::update()
|
||||
|
||||
void BufferView::Pimpl::update(LyXText * text, BufferView::UpdateCodes f)
|
||||
{
|
||||
owner_->updateLayoutChoice();
|
||||
|
||||
if (!text->selection.set() && (f & SELECT)) {
|
||||
text->selection.cursor = text->cursor;
|
||||
}
|
||||
|
@ -1,3 +1,12 @@
|
||||
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
|
||||
|
@ -1579,6 +1579,8 @@ void LyXFunc::dispatch(FuncRequest const & ev, bool verbose)
|
||||
break;
|
||||
} // end of switch
|
||||
|
||||
view()->owner()->updateLayoutChoice();
|
||||
|
||||
exit_with_message:
|
||||
sendDispatchMessage(getMessage(), ev, verbose);
|
||||
}
|
||||
|
@ -1408,7 +1408,6 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
|
||||
// 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!
|
||||
@ -1433,7 +1432,6 @@ Inset::RESULT LyXText::dispatch(FuncRequest const & cmd)
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user