MathCell* MathParser::ParseLimitTag(wxXmlNode* node) { LimitCell *limit = new LimitCell; wxXmlNode* child = node->GetChildren(); if (child) { limit->SetName(ParseTag(child, false)); child = child->GetNext(); if (child) { limit->SetUnder(ParseTag(child, false)); child = child->GetNext(); if (child) { limit->SetBase(ParseTag(child, false)); limit->SetType(m_ParserStyle); limit->SetStyle(TS_VARIABLE); return limit; } } } delete limit; return NULL; }