summaryrefslogtreecommitdiff
path: root/desktop
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2024-09-08 12:19:46 +0200
committerMiklos Vajna <vmiklos@collabora.com>2024-12-09 14:34:12 +0100
commit7364b3a2d820e028d30237cf13f562674759dc4f (patch)
treed8e3419faa2ffefae8a581ec26ecc3ba9710ff28 /desktop
parent810b895ec76d374e173a254c98552c3366183af2 (diff)
lok: slideshow rework: check that requested slide is the expected one
Change-Id: I225dfea9981d43fb90888f5025792e9d24d9a789 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173061 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178129 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'desktop')
-rw-r--r--desktop/source/lib/init.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index d5ac74a2d14e..0a1a2a620150 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -1331,6 +1331,7 @@ static char* doc_getPresentationInfo(LibreOfficeKitDocument* pThis);
static bool doc_createSlideRenderer(
LibreOfficeKitDocument* pThis,
+ const char* pSlideHash,
int nSlideNumber, unsigned* nViewWidth, unsigned* nViewHeight,
bool bRenderBackground, bool bRenderMasterPage);
@@ -5724,6 +5725,7 @@ static char* doc_getPresentationInfo(LibreOfficeKitDocument* pThis)
static bool doc_createSlideRenderer(
LibreOfficeKitDocument* pThis,
+ const char* pSlideHash,
int nSlideNumber, unsigned* pViewWidth, unsigned* pViewHeight,
bool bRenderBackground, bool bRenderMasterPage)
{
@@ -5737,9 +5739,11 @@ static bool doc_createSlideRenderer(
return false;
}
+ OString sSlideHash(pSlideHash);
sal_Int32 nViewWidth = *pViewWidth;
sal_Int32 nViewHeight = *pViewHeight;
bool bReturn = pDoc->createSlideRenderer(
+ sSlideHash,
nSlideNumber, nViewWidth, nViewHeight,
bRenderBackground, bRenderMasterPage);