Don't parse gradation in main parse loop.

--HG--
branch : feature
This commit is contained in:
dismine 2014-08-08 19:24:36 +03:00
parent 750825eb6a
commit b31069859e

View File

@ -300,7 +300,8 @@ void VPattern::Parse(const Document &parse)
{ {
SCASSERT(sceneDraw != nullptr); SCASSERT(sceneDraw != nullptr);
SCASSERT(sceneDetail != nullptr); SCASSERT(sceneDetail != nullptr);
QStringList tags{TagDraw, TagIncrements, TagAuthor, TagDescription, TagNotes, TagMeasurements, TagVersion}; QStringList tags{TagDraw, TagIncrements, TagAuthor, TagDescription, TagNotes, TagMeasurements, TagVersion,
TagGradation};
PrepareForParse(parse); PrepareForParse(parse);
QDomNode domNode = documentElement().firstChild(); QDomNode domNode = documentElement().firstChild();
while (domNode.isNull() == false) while (domNode.isNull() == false)
@ -344,6 +345,8 @@ void VPattern::Parse(const Document &parse)
break; break;
case 6: // TagVersion case 6: // TagVersion
break; break;
case 7: // TagGradation
break;
default: default:
qDebug()<<"Wrong tag name"<<domElement.tagName()<<Q_FUNC_INFO; qDebug()<<"Wrong tag name"<<domElement.tagName()<<Q_FUNC_INFO;
break; break;