Skip to content

Fix dashed and dashPattern property getters (#56)#124

Merged
ibirothe merged 1 commit into
MerrimanInd:mainfrom
barney-w:fix/dashPattern-getter-bug-56
Mar 21, 2026
Merged

Fix dashed and dashPattern property getters (#56)#124
ibirothe merged 1 commit into
MerrimanInd:mainfrom
barney-w:fix/dashPattern-getter-bug-56

Conversation

@barney-w

@barney-w barney-w commented Mar 2, 2026

Copy link
Copy Markdown
Contributor

Fixes #56

dashed and dashPattern getters both returned the raw compound string from line_styles.toml (e.g. "1;dashPattern=8 8") rather than their individual values. This breaks programmatic checks like if obj.dashed == 1.

Also added dashPattern to style_attributes and initialised the backing fields to prevent AttributeError.

15 new tests added. Happy to rebase onto dev if preferred.

Getters returned the raw compound string (e.g. "1;dashPattern=8 8")
rather than their individual values. Added dashPattern to
style_attributes and initialised backing fields.
@ibirothe
ibirothe merged commit 894b693 into MerrimanInd:main Mar 21, 2026
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug with reading set dashPattern?

2 participants