]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
inset-edit should not make a buffer dirty (it edits the external files used by the...
[lyx.git] / src / CutAndPaste.cpp
index 5f1410726b5215f0ba6bda8e2ba46a53b4e1cfb3..2f1a715d084608ac194fb568e9c93e73cc3a3f72 100644 (file)
@@ -801,7 +801,7 @@ void clearCutStack()
 docstring selection(size_t sel_index)
 {
        return sel_index < theCuts.size()
-               ? theCuts[sel_index].first.back().asString(AS_STR_INSETS)
+               ? theCuts[sel_index].first.back().asString(AS_STR_INSETS | AS_STR_NEWLINES)
                : docstring();
 }
 
@@ -915,7 +915,7 @@ void replaceSelectionWithString(Cursor & cur, docstring const & str, bool backwa
        DocIterator selbeg = cur.selectionBegin();
 
        // Get font setting before we cut
-       Font const font =
+       Font const font =
                selbeg.paragraph().getFontSettings(cur.buffer().params(), selbeg.pos());
 
        // Insert the new string