MathCell* LimitCell::Copy(bool all) { LimitCell* tmp = new LimitCell; CopyData(this, tmp); tmp->SetBase(m_base->Copy(true)); tmp->SetUnder(m_under->Copy(true)); tmp->SetName(m_name->Copy(true)); if (all && m_next != NULL) tmp->AppendCell(m_next->Copy(true)); return tmp; }