mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-13 06:20:28 +00:00
rev 23399: the fix was not fully correct because labels are not editable.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@23400 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
00d6906d04
commit
7cd9525197
@ -986,6 +986,8 @@ void Cursor::plainInsert(MathAtom const & t)
|
|||||||
{
|
{
|
||||||
cell().insert(pos(), t);
|
cell().insert(pos(), t);
|
||||||
++pos();
|
++pos();
|
||||||
|
inset().setBuffer(bv_->buffer());
|
||||||
|
inset().validate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1024,10 +1026,11 @@ void Cursor::insert(Inset * inset0)
|
|||||||
BOOST_ASSERT(inset0);
|
BOOST_ASSERT(inset0);
|
||||||
if (inMathed())
|
if (inMathed())
|
||||||
insert(MathAtom(inset0));
|
insert(MathAtom(inset0));
|
||||||
else
|
else {
|
||||||
text()->insertInset(*this, inset0);
|
text()->insertInset(*this, inset0);
|
||||||
inset().setBuffer(bv_->buffer());
|
inset0->setBuffer(bv_->buffer());
|
||||||
inset().validate();
|
inset0->validate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -854,7 +854,7 @@ void Text::dispatch(Cursor & cur, FuncRequest & cmd)
|
|||||||
*/
|
*/
|
||||||
if (cur.selection())
|
if (cur.selection())
|
||||||
cutSelection(cur, true, false);
|
cutSelection(cur, true, false);
|
||||||
insertInset(cur, inset);
|
cur.insert(inset);
|
||||||
cur.posForward();
|
cur.posForward();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user