]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
Fixes for/in insettabular/text.
[lyx.git] / src / CutAndPaste.C
index 66875041500f0acfb964a1f65c4d1e51557675d9..ef04824c567c1f18cbef1033357dc16deb3ee103 100644 (file)
@@ -85,15 +85,14 @@ bool CutAndPaste::cutSelection(LyXParagraph * startpar, LyXParagraph ** endpar,
 #else
        (startpar == (*endpar))
 #endif
-           ) {
+          ) {
        // only within one paragraph
        buf = new LyXParagraph;
        LyXParagraph::size_type i = start;
        if (end > startpar->Last())
            end = startpar->Last();
        for (; i < end; ++i) {
-           startpar->CopyIntoMinibuffer(current_view->buffer()->params,
-                                        start);
+           startpar->CopyIntoMinibuffer(*current_view->buffer(), start);
            startpar->Erase(start);
 
            buf->InsertFromMinibuffer(buf->Last());
@@ -181,14 +180,14 @@ bool CutAndPaste::copySelection(LyXParagraph * startpar, LyXParagraph * endpar,
 #else
        (startpar == endpar)
 #endif
-           ) {
+          ) {
        // only within one paragraph
        buf = new LyXParagraph;
        LyXParagraph::size_type i = start;
        if (end > startpar->Last())
            end = startpar->Last();
        for (; i < end; ++i) {
-           startpar->CopyIntoMinibuffer(current_view->buffer()->params, i);
+           startpar->CopyIntoMinibuffer(*current_view->buffer(), i);
            buf->InsertFromMinibuffer(buf->Last());
        }
     } else {