]> git.lyx.org Git - lyx.git/blobdiff - src/insets/insetbibitem.C
* In the process of fixing the math background color bug, this commit transfer backgr...
[lyx.git] / src / insets / insetbibitem.C
index 89346660f835a460c6f43fd67d8cc08e06bbaa38..0de266a2a710f8c8a11c41a3e3ebb6a02743317a 100644 (file)
@@ -109,10 +109,15 @@ docstring const InsetBibitem::getScreenLabel(Buffer const &) const
 
 
 int InsetBibitem::plaintext(Buffer const &, odocstream & os,
-                           OutputParams const &) const
+                            OutputParams const &) const
 {
-       os << '[' << getCounter() << "] ";
-       return 0;
+       odocstringstream oss;
+       oss << '[' << getCounter() << "] ";
+
+       docstring const str = oss.str();
+       os << str;
+
+       return str.size();
 }