mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-08 10:51:03 +00:00
Revert commit 17010.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17025 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
67e8d59d68
commit
475232ed47
15
src/text3.C
15
src/text3.C
@ -719,13 +719,17 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
recordUndo(cur);
|
recordUndo(cur);
|
||||||
InsetBase * inset = createInset(bv, cmd);
|
InsetBase * inset = createInset(bv, cmd);
|
||||||
if (inset) {
|
if (inset) {
|
||||||
Paragraph & par = pars_[cur.pit()];
|
// FIXME (Abdel 01/02/2006):
|
||||||
// FIXME (Abdel 01/02/2006:
|
// What follows would be a partial fix for bug 2154:
|
||||||
// What follows is a partial fix for bug 2154:
|
|
||||||
// http://bugzilla.lyx.org/show_bug.cgi?id=2154
|
// http://bugzilla.lyx.org/show_bug.cgi?id=2154
|
||||||
// This will automatically put the label inset _after_ a
|
// This automatically put the label inset _after_ a
|
||||||
// numbered section. It is possible to extend the mechanism
|
// numbered section. It should be possible to extend the mechanism
|
||||||
// to any kind of LateX environement.
|
// to any kind of LateX environement.
|
||||||
|
// The correct way to fix that bug would be at LateX generation.
|
||||||
|
// I'll let the code here for reference as it could be used for some
|
||||||
|
// other feature like "automatic labelling".
|
||||||
|
/*
|
||||||
|
Paragraph & par = pars_[cur.pit()];
|
||||||
if (inset->lyxCode() == InsetBase::LABEL_CODE
|
if (inset->lyxCode() == InsetBase::LABEL_CODE
|
||||||
&& par.layout()->labeltype == LABEL_COUNTER) {
|
&& par.layout()->labeltype == LABEL_COUNTER) {
|
||||||
// Go to the end of the paragraph
|
// Go to the end of the paragraph
|
||||||
@ -736,6 +740,7 @@ void LyXText::dispatch(LCursor & cur, FuncRequest & cmd)
|
|||||||
FuncRequest fr(LFUN_BREAK_PARAGRAPH);
|
FuncRequest fr(LFUN_BREAK_PARAGRAPH);
|
||||||
dispatch(cur, fr);
|
dispatch(cur, fr);
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
insertInset(cur, inset);
|
insertInset(cur, inset);
|
||||||
cur.posRight();
|
cur.posRight();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user