Skip to content

Some text decoration attributes replace each other instead of merging #4918

@webwarrior-ws

Description

@webwarrior-ws

Example:

text := 'Hello world' asRopedText.
text
	attributes: {
		BlTextDecorationAttribute new underline.
		BlTextDecorationAttribute new lineThrough.
	} 
	from: 1
	to: 5.

Expected behavior:

Hello is underlined and strikethrough.

Actual behavior:

Hello is just strikethrough.

My thoughts

From debugging it seems that this happens because both attributes have the same type.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions