]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.cpp
Update it.po
[lyx.git] / src / CutAndPaste.cpp
index 80be34ad3db74f4a2733bafaefb8cc6d91caafd2..5a0ecbb09c393f0942930834a7fcdd32aa1075af 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();
 }
 
@@ -914,7 +914,7 @@ void replaceSelectionWithString(Cursor & cur, docstring const & str, bool backwa
        cur.recordUndo();
        DocIterator selbeg = cur.selectionBegin();
 
-       // Get font setting before we cut
+       // Get font setting before we cut, we need a copy here, not a bare reference.
        Font const font =
                selbeg.paragraph().getFontSettings(cur.buffer().params(), selbeg.pos());
 
@@ -993,7 +993,7 @@ void selClearOrDel(Cursor & cur)
        if (lyxrc.auto_region_delete)
                selDel(cur);
        else
-               cur.selection() = false;
+               cur.setSelection(false);
 }