From: Richard Heck Date: Mon, 20 Jun 2011 15:19:16 +0000 (+0000) Subject: Fix problem with bibliography indentation reported on user list. X-Git-Tag: 2.1.0beta1~3025 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=51149d849025bc39a789f19925ca0a61b3bb7fe5;p=features.git 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 --- diff --git a/src/Buffer.cpp b/src/Buffer.cpp index f14ba3e29d..4fd9a4cb24 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -4000,10 +4000,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()); }