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