sd/source/ui/docshell/docshel2.cxx | 12 ++++++++++++ 1 file changed, 12 insertions(+)
New commits: commit f458602b7d135f67666fe3094f7b11f98de496f8 Author: Gökay Şatır <gokaysa...@collabora.com> AuthorDate: Thu Jan 9 18:14:08 2025 +0300 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Tue Jan 21 08:28:48 2025 +0100 cool#10967: LOK Impress: Invalidate tiles on switching the view mode. Issue: * Select second slide (some slide other than the first one). * Switch to notes view. * Switch back to normal view. * Edit textbox content. * Switch to notes view again. * Notice that the preview in notes view is not updated. Reason: * Invalidate tiles callback is called before the view is connected. Solution: * Call invalidation on connection. Signed-off-by: Gökay Şatır <gokaysa...@collabora.com> Change-Id: I997c603e11024743420ced659c7d0b0f1c5bc937 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/180022 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sd/source/ui/docshell/docshel2.cxx b/sd/source/ui/docshell/docshel2.cxx index 582afec0517a..3e21925b07e0 100644 --- a/sd/source/ui/docshell/docshel2.cxx +++ b/sd/source/ui/docshell/docshel2.cxx @@ -39,6 +39,9 @@ #include <rtl/character.hxx> #include <tools/debug.hxx> +#include <sfx2/lokhelper.hxx> +#include <comphelper/lok.hxx> + namespace sd { /** @@ -147,6 +150,15 @@ void DrawDocShell::Draw(OutputDevice* pOut, const JobSetup&, sal_uInt16 nAspect, void DrawDocShell::Connect(ViewShell* pViewSh) { mpViewShell = pViewSh; + + if (comphelper::LibreOfficeKit::isActive()) + { + SfxViewShell* sfxViewShell = mpViewShell->GetViewShell(); + if (sfxViewShell) + { + mpViewShell->GetViewShell()->libreOfficeKitViewInvalidateTilesCallback(nullptr, sfxViewShell->getPart(), sfxViewShell->getEditMode()); + } + } } void DrawDocShell::Disconnect(ViewShell const * pViewSh)