From e875505f2666596e0c7ff627fea33619d7abb1d2 Mon Sep 17 00:00:00 2001 From: Sabine Schmaltz Date: Sun, 16 Feb 2014 23:20:16 +0100 Subject: [PATCH] moved variable back in scope --HG-- branch : develop --- src/xml/vdomdocument.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/xml/vdomdocument.cpp b/src/xml/vdomdocument.cpp index 969b0b65f..4008199df 100644 --- a/src/xml/vdomdocument.cpp +++ b/src/xml/vdomdocument.cpp @@ -724,7 +724,6 @@ void VDomDocument::ParsePointElement(VMainGraphicsScene *scene, const QDomElemen Q_ASSERT_X(domElement.isNull() == false, Q_FUNC_INFO, "domElement is null"); Q_ASSERT_X(type.isEmpty() == false, Q_FUNC_INFO, "type of point is empty"); - VToolSinglePoint *spoint = 0; QStringList points; points << VToolSinglePoint::ToolType << VToolEndLine::ToolType << VToolAlongLine::ToolType @@ -734,6 +733,8 @@ void VDomDocument::ParsePointElement(VMainGraphicsScene *scene, const QDomElemen << VToolCutSpline::ToolType << VToolCutSplinePath::ToolType << VToolCutArc::ToolType; switch(points.indexOf(type)) { case 0: //VToolSinglePoint::ToolType + { + VToolSinglePoint *spoint = 0; try { qint64 id = GetParametrId(domElement); @@ -769,6 +770,7 @@ void VDomDocument::ParsePointElement(VMainGraphicsScene *scene, const QDomElemen throw excep; } break; + } case 1: //VToolEndLine::ToolType try {