* 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:
Jean-Marc Lasgouttes 2006-09-15 09:37:33 +00:00
parent 6aa2f26bdb
commit c50a5e9897
3 changed files with 14 additions and 0 deletions

View File

@ -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>
* src/text3.C (doInsertInset): reset first paragraph to default

View File

@ -120,6 +120,13 @@ void breakParagraph(BufferParams const & bparams,
if (flag) {
tmp->layout(par.layout());
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());

View File

@ -93,6 +93,8 @@ What's new
- Fix a crash when the cursor is in an empty script and the user
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
one element (like {a'}^{2}).