Skip to content

Commit

Permalink
slideshow: invalidate cached layers on slideshow restart
Browse files Browse the repository at this point in the history
Current slideshow implementation is not notified about presentation
modification. A complete solution would require a good amount of work.
In the meanwhile we need a workround, which it's waht this patch provides.

Signed-off-by: Marco Cecchetti <marco.cecchetti@collabora.com>
Change-Id: I1ae3c09a60a1273dfe829f0932bd0fd83404de93
  • Loading branch information
mcecchetti committed Nov 20, 2024
1 parent e82d800 commit 5918dff
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions browser/src/slideshow/LayerDrawing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,11 @@ class LayerDrawing {

public invalidateAll(): void {
this.slideCache.invalidateAll();
this.slideTextFieldsMap.clear();
this.cachedTextFields.clear();
this.cachedBackgrounds.clear();
this.cachedMasterPages.clear();
this.cachedDrawPages.clear();
}

public getCanvasSize(): [number, number] {
Expand Down

0 comments on commit 5918dff

Please sign in to comment.