From 1ae69d2ac81bb7d2cf53af86831e0b1f8baf6a96 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 cbd840cfe63c..3366bf63f5c0 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)) {