Merge pull request #5060 from Roy-043/Draft-fix-2-svg-pattern-issues

Draft: fix 2 SVG pattern issues
This commit is contained in:
Chris Hennes
2021-09-24 10:34:31 -05:00
committed by GitHub
3 changed files with 5 additions and 3 deletions

View File

@@ -10,7 +10,7 @@
</rdf:RDF>
</metadata>
<defs id="defs2987">
<pattern height=".1" width=".1" y="0" x="0" patternUnits="userSpaceOnUse" id="simple">
<pattern height=".1" width=".1" y="0" x="0" patternUnits="userSpaceOnUse" id="hatch45L">
<g id="g3377" style="fill:none;stroke:#000000;stroke-width:0.005">
<path id="path3379" d="M0,0 l.12,.12" />
</g>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -10,7 +10,7 @@
</rdf:RDF>
</metadata>
<defs id="defs2987">
<pattern height=".1" width=".1" y="0" x="0" patternUnits="userSpaceOnUse" id="simple">
<pattern height=".1" width=".1" y="0" x="0" patternUnits="userSpaceOnUse" id="hatch45R">
<g id="g3377" style="fill:none;stroke:#000000;stroke-width:0.005">
<path id="path3379" d="M0,0 l.12,.12" />
</g>

Before

Width:  |  Height:  |  Size: 2.2 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@@ -104,7 +104,9 @@ class ViewProviderDraft(object):
"Pattern",
"Draft",
QT_TRANSLATE_NOOP("App::Property", _tip))
vobj.Pattern = ["None"] + list(utils.svg_patterns().keys())
patterns = list(utils.svg_patterns().keys())
patterns.sort()
vobj.Pattern = ["None"] + patterns
if not hasattr(vobj, "PatternSize"):
_tip = "Defines the size of the hatch pattern."