]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
Implement os::current_root for native Win32 builds.
[lyx.git] / src / CutAndPaste.C
index ab771cd5164d68fcee90830b66749ed0dcc3f883..1d567c022fb5d50d9033cb9273a1e66c8029d96c 100644 (file)
@@ -168,7 +168,7 @@ pasteSelectionHelper(Buffer const & buffer, ParagraphList & pars,
 
                for (; lit != eit; ++lit) {
                        switch (lit->inset->lyxCode()) {
-                       case InsetOld::TABULAR_CODE: {
+                       case InsetBase::TABULAR_CODE: {
                                InsetTabular * it = static_cast<InsetTabular*>(lit->inset);
                                it->buffer(&buffer);
                                break;
@@ -466,7 +466,6 @@ void cutSelection(LCursor & cur, bool doclear, bool realcut)
                if (doclear)
                        text->paragraphs()[begpit].stripLeadingSpaces();
 
-               text->redoParagraphs(begpit, begpit + 1);
                // cutSelection can invalidate the cursor so we need to set
                // it anew. (Lgb)
                // we prefer the end for when tracking changes
@@ -564,8 +563,6 @@ void pasteSelection(LCursor & cur, size_t sel_index)
                bufferErrors(cur.buffer(), el);
                cur.bv().showErrorList(_("Paste"));
 
-               text->redoParagraphs(cur.pit(), endpit);
-
                cur.clearSelection();
                cur.resetAnchor();
                text->setCursor(cur, ppp.first, ppp.second);