Merge pull request #5060 from Roy-043/Draft-fix-2-svg-pattern-issues
Draft: fix 2 SVG pattern issues
This commit is contained in:
@@ -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 |
@@ -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 |
@@ -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."
|
||||
|
||||
Reference in New Issue
Block a user