Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Fixed RichTextChange reported by ReadOnlyStyledDocument replace #908

Merged
merged 1 commit into from
Mar 5, 2020
Merged

Fixed RichTextChange reported by ReadOnlyStyledDocument replace #908

merged 1 commit into from
Mar 5, 2020

Conversation

Jugen
Copy link
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
# for free to join this conversation on GitHub. Already have an account? # 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