]> git.lyx.org Git - lyx.git/blobdiff - src/text2.C
Forgot to add this files.
[lyx.git] / src / text2.C
index bbd6061d3732657d817e0875b1617a28d1854da9..9542fc6a3b0226a404d5f86436615dab249f601a 100644 (file)
@@ -2027,8 +2027,10 @@ void LyXText::SetCounter(Buffer const * buf, LyXParagraph * par) const
                int i = LABEL_COUNTER_ENUMI - LABEL_COUNTER_CHAPTER + par->enumdepth;
                par->incCounter(i);
                int number = par->getCounter(i);
-               if (!par->bibkey)
-                       par->bibkey = new InsetBibKey();
+               if (!par->bibkey) {
+                       InsetCommandParams p( "bibitem" );
+                       par->bibkey = new InsetBibKey(p);
+               }
                par->bibkey->setCounter(number);
                par->labelstring = layout.labelstring();