mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-05 17:09:56 +00:00
* paragraph_funcs.C (breakParagraph): make sure to respect nesting
when depth > 0 (bug 2445)/ git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_1_4_X@15001 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
6aa2f26bdb
commit
c50a5e9897
@ -1,3 +1,8 @@
|
|||||||
|
2006-09-15 Jean-Marc Lasgouttes <lasgouttes@lyx.org>
|
||||||
|
|
||||||
|
* paragraph_funcs.C (breakParagraph): make sure to respect nesting
|
||||||
|
when depth > 0 (bug 2445)/
|
||||||
|
|
||||||
2006-09-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
2006-09-14 Jürgen Spitzmüller <j.spitzmueller@gmx.de>
|
||||||
|
|
||||||
* src/text3.C (doInsertInset): reset first paragraph to default
|
* src/text3.C (doInsertInset): reset first paragraph to default
|
||||||
|
@ -120,6 +120,13 @@ void breakParagraph(BufferParams const & bparams,
|
|||||||
if (flag) {
|
if (flag) {
|
||||||
tmp->layout(par.layout());
|
tmp->layout(par.layout());
|
||||||
tmp->setLabelWidthString(par.params().labelWidthString());
|
tmp->setLabelWidthString(par.params().labelWidthString());
|
||||||
|
tmp->params().depth(par.params().depth());
|
||||||
|
} else if (par.params().depth() > 0) {
|
||||||
|
Paragraph const & hook = pars[outerHook(par_offset, pars)];
|
||||||
|
tmp->layout(hook.layout());
|
||||||
|
// not sure the line below is useful
|
||||||
|
tmp->setLabelWidthString(par.params().labelWidthString());
|
||||||
|
tmp->params().depth(hook.params().depth());
|
||||||
}
|
}
|
||||||
|
|
||||||
bool const isempty = (par.allowEmpty() && par.empty());
|
bool const isempty = (par.allowEmpty() && par.empty());
|
||||||
|
@ -93,6 +93,8 @@ What's new
|
|||||||
- Fix a crash when the cursor is in an empty script and the user
|
- Fix a crash when the cursor is in an empty script and the user
|
||||||
clicks in the text.
|
clicks in the text.
|
||||||
|
|
||||||
|
- Do not reset environment depth when breaking a paragraph (bug 2445).
|
||||||
|
|
||||||
- Handle properly script insets which the nucleus has more than
|
- Handle properly script insets which the nucleus has more than
|
||||||
one element (like {a'}^{2}).
|
one element (like {a'}^{2}).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user