]> git.lyx.org Git - lyx.git/blobdiff - src/CutAndPaste.C
architectural changes to tex2lyx
[lyx.git] / src / CutAndPaste.C
index cf6ba8e8ff21501b1f79bdfb35c1c7aaf52d2c2b..36c863428ff1f183dce6c9092f39c18c789aea12 100644 (file)
@@ -181,8 +181,6 @@ bool CutAndPaste::copySelection(ParagraphList::iterator startpit,
                                ParagraphList::iterator endpit,
                                int start, int end, textclass_type tc)
 {
-       Assert(&*startpit);
-       Assert(&*endpit);
        Assert(0 <= start && start <= startpit->size());
        Assert(0 <= end && end <= endpit->size());
        Assert(startpit != endpit || start <= end);
@@ -302,7 +300,7 @@ CutAndPaste::pasteSelection(Buffer const & buffer,
 
                for (; lit != eit; ++lit) {
                        switch (lit->inset->lyxCode()) {
-                       case Inset::INCLUDE_CODE: {
+                       case InsetOld::INCLUDE_CODE: {
                                InsetInclude * ii = static_cast<InsetInclude*>(lit->inset);
                                InsetInclude::Params ip = ii->params();
                                ip.masterFilename_ = buffer.fileName();
@@ -310,7 +308,7 @@ CutAndPaste::pasteSelection(Buffer const & buffer,
                                break;
                        }
 
-                       case Inset::TABULAR_CODE: {
+                       case InsetOld::TABULAR_CODE: {
                                InsetTabular * it = static_cast<InsetTabular*>(lit->inset);
                                it->buffer(const_cast<Buffer*>(&buffer));
                                break;