Skip to content

Commit 78447a9

Browse files
authored
Merge pull request #174 from MIERUNE/fix/custom-dashed-pattern
Debug simple line fallback
2 parents 700f9d2 + 2bce9c6 commit 78447a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

translator/vector/symbol/penstyle.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ def _get_penstyle_from_line(symbol_layer: QgsLineSymbolLayer) -> dict:
137137
* convert_to_point(symbol_layer.width(), symbol_layer.widthUnit())
138138
for dash_value in dash_pattern_mul
139139
]
140+
penstyle["dash_pattern"] = dash_pattern
140141

141142
elif penstyle["stroke"] == "solid" and symbol_layer.useCustomDashPattern():
142143
# customized patterns occurs NOT with dash strole but solid stroke
@@ -146,6 +147,6 @@ def _get_penstyle_from_line(symbol_layer: QgsLineSymbolLayer) -> dict:
146147
for dash_value in symbol_layer.customDashVector()
147148
]
148149

149-
penstyle["dash_pattern"] = dash_pattern
150+
penstyle["dash_pattern"] = dash_pattern
150151

151152
return penstyle

0 commit comments

Comments
 (0)