diff options
Diffstat (limited to 'Build/source/texk/dvisvgm/dvisvgm-src/src/PSPattern.cpp')
-rw-r--r-- | Build/source/texk/dvisvgm/dvisvgm-src/src/PSPattern.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/Build/source/texk/dvisvgm/dvisvgm-src/src/PSPattern.cpp b/Build/source/texk/dvisvgm/dvisvgm-src/src/PSPattern.cpp index 90ff6a56852..4659dc7a849 100644 --- a/Build/source/texk/dvisvgm/dvisvgm-src/src/PSPattern.cpp +++ b/Build/source/texk/dvisvgm/dvisvgm-src/src/PSPattern.cpp @@ -2,7 +2,7 @@ ** PSPattern.cpp ** ** ** ** This file is part of dvisvgm -- a fast DVI to SVG converter ** -** Copyright (C) 2005-2019 Martin Gieseking <martin.gieseking@uos.de> ** +** Copyright (C) 2005-2020 Martin Gieseking <martin.gieseking@uos.de> ** ** ** ** This program is free software; you can redistribute it and/or ** ** modify it under the terms of the GNU General Public License as ** @@ -151,12 +151,11 @@ void PSUncoloredTilingPattern::apply (SpecialActions &actions) { setGroupNode(util::static_unique_ptr_cast<XMLElement>(getGroupNode()->clone())); // assign current color to the pattern graphic vector<XMLElement*> colored_elems; - const array<const char*, 2> attribs = {{"fill", "stroke"}}; - for (const char *attrib : attribs) { - getGroupNode()->getDescendants(nullptr, attrib, colored_elems); + for (const char *attrName : {"fill", "stroke"}) { + getGroupNode()->getDescendants(nullptr, attrName, colored_elems); for (XMLElement *elem : colored_elems) { - if (string(elem->getAttributeValue(attrib)) != "none") - elem->addAttribute(attrib, _currentColor.svgColorString()); + if (string(elem->getAttributeValue(attrName)) != "none") + elem->addAttribute(attrName, _currentColor.svgColorString()); } colored_elems.clear(); } |