Fix problem with bibliography indentation reported on user list.

Porting to branch.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/branches/BRANCH_2_0_X@39150 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-06-20 15:21:36 +00:00
parent f2e2119b3f
commit 0de72fc38c
2 changed files with 7 additions and 3 deletions

View File

@ -3966,10 +3966,12 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const
// Compute the item depth of the paragraph
par.itemdepth = getItemDepth(it);
if (layout.margintype == MARGIN_MANUAL
|| layout.latextype == LATEX_BIB_ENVIRONMENT) {
if (layout.margintype == MARGIN_MANUAL) {
if (par.params().labelWidthString().empty())
par.params().labelWidthString(par.expandLabel(layout, bp));
} else if (layout.latextype == LATEX_BIB_ENVIRONMENT) {
// we do not need to do anything here, since the empty case is
// handled during export.
} else {
par.params().labelWidthString(docstring());
}

View File

@ -83,6 +83,8 @@ What's new
- Fix output of decimally aligned columns in unviewed (on screen) tables.
- Fix problem with indentation of bibliography items.
- Inform user of unknown layouts caused by class change (bug 7571).
- Avoid LaTeX errors if font changing commands are used in the wrong mode
@ -109,7 +111,7 @@ What's new
- Fix dvi forward search on Windows when compiling with MSVC.
- Calculate relative pathnames to master documents when master is in a
directory above the child (bug #7540).
directory above the child (bug 7540).
- On Windows, improve detection of the TeX engine when the file system does
not support short names and the temp directory contains spaces.