]> git.lyx.org Git - lyx.git/blobdiff - src/Cursor.cpp
comment
[lyx.git] / src / Cursor.cpp
index b385f025a128175f7cd2942231ec629d29b9ad60..b91322fe49c73ff1de00c6a4426a4ff600b3c49d 100644 (file)
@@ -1559,7 +1559,7 @@ void Cursor::normalize()
                        << pos() << ' ' << lastpos() <<  " in idx: " << idx()
                       << " in atom: '";
                odocstringstream os;
-               WriteStream wi(os, false, true);
+               WriteStream wi(os, false, true, false);
                inset().asInsetMath()->write(wi);
                lyxerr << to_utf8(os.str()) << endl;
                pos() = lastpos();
@@ -1850,11 +1850,14 @@ void Cursor::errorMessage(docstring const & msg) const
 }
 
 
-docstring Cursor::selectionAsString(bool label) const
+docstring Cursor::selectionAsString(bool with_label) const
 {
        if (!selection())
                return docstring();
 
+       int const label = with_label
+               ? AS_STR_LABEL | AS_STR_INSETS : AS_STR_INSETS;
+
        if (inTexted()) {
                ParagraphList const & pars = text()->paragraphs();