Skip to content

Commit

Permalink
Merge pull request #174 from MIERUNE/fix/custom-dashed-pattern
Browse files Browse the repository at this point in the history
Debug simple line fallback
  • Loading branch information
nbayashi authored Jul 30, 2024
2 parents 700f9d2 + 2bce9c6 commit 78447a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion translator/vector/symbol/penstyle.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ def _get_penstyle_from_line(symbol_layer: QgsLineSymbolLayer) -> dict:
* convert_to_point(symbol_layer.width(), symbol_layer.widthUnit())
for dash_value in dash_pattern_mul
]
penstyle["dash_pattern"] = dash_pattern

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

penstyle["dash_pattern"] = dash_pattern
penstyle["dash_pattern"] = dash_pattern

return penstyle

0 comments on commit 78447a9

Please sign in to comment.