Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Do not refresh if the layout has not changed #595

Merged

Conversation

tobiolo
Copy link
Collaborator

@tobiolo tobiolo commented Jan 14, 2024

Document::ScrollIfSelectionOutOfView(wxDC&, Selection&, bool) should not call Document::Refresh() for a complete repaint if we can assure that the layout has not changed.

`Document::ScrollIfSelectionOutOfView(wxDC&, Selection&, bool)` should not call
`Document::Refresh()` for a complete repaint if we can assure that the layout
has not changed.
@tobiolo tobiolo changed the title Do not refresh if the layout has not changed for sure Do not refresh if the layout has not changed Jan 14, 2024
@tobiolo
Copy link
Collaborator Author

tobiolo commented Jan 15, 2024

#598
#595
#594
should make Refresh() be only called once when document is loaded.

@aardappel aardappel merged commit f0d82f3 into aardappel:master Jan 16, 2024
4 checks passed
@tobiolo tobiolo deleted the refresh-only-if-layout-has-changed branch March 13, 2024 18:56
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.

None yet

2 participants