From b3a6b22308aa48e91dd728bec2a9c46ebed93b87 Mon Sep 17 00:00:00 2001 From: donovaly Date: Sat, 13 Jun 2020 03:06:36 +0200 Subject: [PATCH] code simplification --- src/Mod/TechDraw/Gui/QGIFace.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Mod/TechDraw/Gui/QGIFace.cpp b/src/Mod/TechDraw/Gui/QGIFace.cpp index cbd840cfe6..3366bf63f5 100644 --- a/src/Mod/TechDraw/Gui/QGIFace.cpp +++ b/src/Mod/TechDraw/Gui/QGIFace.cpp @@ -224,14 +224,14 @@ void QGIFace::loadSvgHatch(std::string fileSpec) } m_svgXML = f.readAll(); - // search in the file for the "stroke" specifiction in order to find out what specification style is used + // search in the file for the "stroke" specifiction in order to find out what declaration style is used // this is necessary to apply a color set by the user to the SVG QByteArray pattern("stroke:"); - QByteArrayMatcher matcher(pattern); + QByteArrayMatcher matcher(pattern); int pos = 0; - if ((pos = matcher.indexIn(m_svgXML, pos)) != -1) - SVGCOLPREFIX = "stroke:"; // declaration part of a style= statement - else + if (matcher.indexIn(m_svgXML, pos) != -1) + SVGCOLPREFIX = "stroke:"; // declaration part of a style="" statement + else SVGCOLPREFIX = "stroke=\""; // declaration of its own if (!m_svg->load(&m_svgXML)) {