From 6d159f4dcf170644b98a01727d740406c7849fab Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Sun, 7 Jul 2024 20:39:03 +0200 Subject: lok: sd: slideshow render: some bug fixes The suggested canvas size need to be passed to createSlideRenderer. masterPageObjectsVisible -> masterPageObjectsVisibility as on client. Last json message should be reset on each call to renderNextLayer. In order to avoid to send empty layer check if the json message has been set. After rendering the background layer we need to return or the layer is never received. Change-Id: I9a83895d4f3895f3363c1b6a86fac9bd22c9fe87 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/173728 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- desktop/source/lib/init.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'desktop/source') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index ebd2446c3208..f35a7fdb7757 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -5687,8 +5687,8 @@ static bool doc_createSlideRenderer( return false; } - sal_Int32 nViewWidth = 0; - sal_Int32 nViewHeight = 0; + sal_Int32 nViewWidth = *pViewWidth; + sal_Int32 nViewHeight = *pViewHeight; bool bReturn = pDoc->createSlideRenderer( nSlideNumber, nViewWidth, nViewHeight, bRenderBackground, bRenderMasterPage); -- cgit