mirror of
https://github.com/storytold/wordcraft.git
synced 2026-12-06 23:09:47 +00:00
Compare commits
1
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
568039cd7f |
@@ -1065,7 +1065,9 @@ fn show_pages(app: &mut WordApp, ui: &mut Ui, layout: &Arc<DocLayout>, full: Rec
|
||||
// The same places two passes running: the view is at rest, and these are the places pictures are made for.
|
||||
let placed = |pages: &[PlacedPage]| pages.iter().map(|p| (p.page, p.rect)).collect::<Vec<_>>();
|
||||
let now = placed(&out.pages);
|
||||
if now == placed(&app.canvas.shown.pages) && now != app.canvas.settled_pages {
|
||||
// A pass that placed no page (a key's edit pass) is not a rest: clearing the places would make the pictures
|
||||
// that pass asks for the unsized ones, and the next pass's sized ones render all over again.
|
||||
if !now.is_empty() && now == placed(&app.canvas.shown.pages) && now != app.canvas.settled_pages {
|
||||
app.canvas.settled_pages = now;
|
||||
// The pictures of the places just settled are made on the next pass.
|
||||
ui.ctx().request_repaint();
|
||||
|
||||
Reference in New Issue
Block a user