]> git.lyx.org Git - features.git/commitdiff
Fix output of getCaptionAsPlaintext()
authorGeorg Baum <baum@lyx.org>
Fri, 15 Mar 2013 20:16:40 +0000 (21:16 +0100)
committerGeorg Baum <baum@lyx.org>
Fri, 15 Mar 2013 20:16:40 +0000 (21:16 +0100)
src/insets/InsetCaption.cpp

index 6891d6387ef87874946336a178255c86a9355513..035a5feda0c5c272f3a447ca64347861cbba4e14 100644 (file)
@@ -351,8 +351,9 @@ int InsetCaption::getCaptionAsPlaintext(odocstream & os,
 {
        os << full_label_ << ' ';
        odocstringstream ods;
-       return InsetText::plaintext(ods, runparams);
+       int const retval = InsetText::plaintext(ods, runparams);
        os << ods.str();
+       return retval;
 }