Skip to content

Fixed RichTextChange reported by ReadOnlyStyledDocument replace#908

Merged
Jugen merged 1 commit intoFXMisc:masterfrom
Jugen:Fix_unexpected_change_received
Mar 5, 2020
Merged

Fixed RichTextChange reported by ReadOnlyStyledDocument replace#908
Jugen merged 1 commit intoFXMisc:masterfrom
Jugen:Fix_unexpected_change_received

Conversation

@Jugen
Copy link
Copy Markdown
Collaborator

@Jugen Jugen commented Mar 5, 2020

Fixes #904

The problem turned out to be that when ReadOnlyStyledDocument does a replace then it is assumed that the provided replacement is the actual change that has occurred in the document. This is not always the case though due to paragraph concatenation having various rules determining if the left or right hand side style is going to be used if either of the paragraphs is empty.

@Jugen Jugen merged commit c9a002b into FXMisc:master Mar 5, 2020
@Jugen Jugen deleted the Fix_unexpected_change_received branch March 5, 2020 12:46
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.

Unexpected change when undoing a paragraph copy with a preceding paragraph style

1 participant