]> git.lyx.org Git - lyx.git/commitdiff
Don't use widest label for numerical citations.
authorJulien Rioux <jrioux@lyx.org>
Tue, 14 May 2013 19:51:05 +0000 (21:51 +0200)
committerJulien Rioux <jrioux@lyx.org>
Thu, 16 May 2013 14:10:06 +0000 (16:10 +0200)
Fixes bug #8513.

src/insets/InsetBibitem.cpp

index bb879259304dccba9e82f95f69406b49ce45220e..2840ad5c8fff621f51992f53c8595845513940d3 100644 (file)
@@ -234,6 +234,10 @@ int InsetBibitem::plaintext(odocstringstream & os,
 // ale070405
 docstring bibitemWidest(Buffer const & buffer, OutputParams const & runparams)
 {
+       BufferParams const & bp = buffer.masterBuffer()->params();
+       if (bp.citeEngineType() == ENGINE_TYPE_NUMERICAL)
+               return from_ascii("99");
+
        int w = 0;
 
        InsetBibitem const * bitem = 0;