summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/src/PSPattern.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dviware/dvisvgm/src/PSPattern.cpp')
-rw-r--r--dviware/dvisvgm/src/PSPattern.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dviware/dvisvgm/src/PSPattern.cpp b/dviware/dvisvgm/src/PSPattern.cpp
index 4659dc7a84..2320e14cac 100644
--- a/dviware/dvisvgm/src/PSPattern.cpp
+++ b/dviware/dvisvgm/src/PSPattern.cpp
@@ -2,7 +2,7 @@
** PSPattern.cpp **
** **
** This file is part of dvisvgm -- a fast DVI to SVG converter **
-** Copyright (C) 2005-2020 Martin Gieseking <martin.gieseking@uos.de> **
+** Copyright (C) 2005-2021 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 **
@@ -106,8 +106,8 @@ unique_ptr<XMLElement> PSTilingPattern::createClipNode() const {
* define the pattern graphic. */
unique_ptr<XMLElement> PSTilingPattern::createGroupNode () const {
// add all succeeding path elements to this group
- auto group = util::make_unique<XMLElement>("g");
- group->addAttribute("clip-path", XMLString("url(#pc")+XMLString(psID())+")");
+ auto group = util::make_unique<SVGElement>("g");
+ group->setClipPathUrl("pc"+XMLString(psID()));
return group;
}