]> git.lyx.org Git - features.git/blobdiff - src/Cursor.cpp
Unify Paragraph::asString() methods.
[features.git] / src / Cursor.cpp
index b385f025a128175f7cd2942231ec629d29b9ad60..b662faa82f89b68f2e5c0be9384735782062dcff 100644 (file)
@@ -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();