X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.cpp;h=41019338514297097ad2580f0fa325774981cf3c;hb=11c47ddfcfa8c83fd24b1e7e47279db32f1be9cd;hp=d7a3a1fd3612929f646001f66a3e4857d3e9692d;hpb=affc006baeb50c3d730ac06cf6dcfe050d6c98d8;p=features.git diff --git a/src/CutAndPaste.cpp b/src/CutAndPaste.cpp index d7a3a1fd36..4101933851 100644 --- a/src/CutAndPaste.cpp +++ b/src/CutAndPaste.cpp @@ -950,7 +950,7 @@ void cutSelectionHelper(Cursor & cur, CutStack & cuts, bool realcut, bool putcli // Even if there is no selection. if (putclip) putClipboard(cuts[0].first, cuts[0].second, - cur.selectionAsString(true)); + cur.selectionAsString(true, true)); } if (begpit != endpit) @@ -1011,7 +1011,7 @@ void cutSelectionToTemp(Cursor & cur, bool realcut) void copySelection(Cursor const & cur) { - copySelection(cur, cur.selectionAsString(true)); + copySelection(cur, cur.selectionAsString(true, true)); } @@ -1122,7 +1122,7 @@ void saveSelection(Cursor const & cur) if (cur.selection() && cur.selBegin() == cur.bv().cursor().selBegin() && cur.selEnd() == cur.bv().cursor().selEnd()) { - LYXERR(Debug::SELECTION, "saveSelection: '" << cur.selectionAsString(true) << "'"); + LYXERR(Debug::SELECTION, "saveSelection: '" << cur.selectionAsString(true, true) << "'"); copySelectionToStack(cur, selectionBuffer); } }