X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FCutAndPaste.C;h=36c863428ff1f183dce6c9092f39c18c789aea12;hb=09e01879979643949f1f2c7216023f1f35d5ada2;hp=cf6ba8e8ff21501b1f79bdfb35c1c7aaf52d2c2b;hpb=92d522b7f1be6046adcac062c558bbf0bf021612;p=lyx.git diff --git a/src/CutAndPaste.C b/src/CutAndPaste.C index cf6ba8e8ff..36c863428f 100644 --- a/src/CutAndPaste.C +++ b/src/CutAndPaste.C @@ -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(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(lit->inset); it->buffer(const_cast(&buffer)); break;