aardappel / treesheets

TreeSheets : Free Form Data Organizer (see strlen.com/treesheets)
zlib License
2.5k stars 185 forks source link

Do not refresh if the layout has not changed #595

Closed tobiolo closed 5 months ago

tobiolo commented 5 months ago

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 commented 5 months ago

https://github.com/aardappel/treesheets/pull/598 https://github.com/aardappel/treesheets/pull/595 https://github.com/aardappel/treesheets/pull/594 should make Refresh() be only called once when document is loaded.