]> git.lyx.org Git - features.git/commitdiff
Fix problem with bibliography indentation reported on user list.
authorRichard Heck <rgheck@comcast.net>
Mon, 20 Jun 2011 15:19:16 +0000 (15:19 +0000)
committerRichard Heck <rgheck@comcast.net>
Mon, 20 Jun 2011 15:19:16 +0000 (15:19 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39149 a592a061-630c-0410-9148-cb99ea01b6c8

src/Buffer.cpp

index f14ba3e29d93fa6325b3db713b052245be55eb2c..4fd9a4cb24f244117c818157f9a55081387b6f9d 100644 (file)
@@ -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());
        }