Fix problem with bibliography indentation reported on user list.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39149 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Richard Heck 2011-06-20 15:19:16 +00:00
parent f69348f48a
commit 51149d8490

View File

@ -4000,10 +4000,12 @@ void Buffer::Impl::setLabel(ParIterator & it, UpdateType utype) const
// Compute the item depth of the paragraph // Compute the item depth of the paragraph
par.itemdepth = getItemDepth(it); par.itemdepth = getItemDepth(it);
if (layout.margintype == MARGIN_MANUAL if (layout.margintype == MARGIN_MANUAL) {
|| layout.latextype == LATEX_BIB_ENVIRONMENT) {
if (par.params().labelWidthString().empty()) if (par.params().labelWidthString().empty())
par.params().labelWidthString(par.expandLabel(layout, bp)); 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 { } else {
par.params().labelWidthString(docstring()); par.params().labelWidthString(docstring());
} }