Draft-fix-2-svg-pattern-issues

List of patterns is now sorted A-Z.
This commit is contained in:
Roy-043
2021-09-24 10:54:51 +02:00
committed by GitHub
parent 873e0977ca
commit 744ed7be52

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."