From 0e71075bb7379af318482bb3abbb630c58db9ec9 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 3 Jan 2017 15:41:58 +0100 Subject: Related: tdf#104841 sw PDF export: handle linked videos on non-first pages Be explicit about the page number, this way a video on the second page doesn't end up as an annotation for the first page. (In the Impress case each slide is exported separately, so there this wasn't a problem.) Change-Id: I83ba9cb4a3b2a6734bd88a138654e391199651c6 Reviewed-on: https://gerrit.libreoffice.org/32696 Reviewed-by: Miklos Vajna Tested-by: Jenkins --- vcl/source/gdi/pdfextoutdevdata.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vcl') diff --git a/vcl/source/gdi/pdfextoutdevdata.cxx b/vcl/source/gdi/pdfextoutdevdata.cxx index f85c981010a1..0649b450bde5 100644 --- a/vcl/source/gdi/pdfextoutdevdata.cxx +++ b/vcl/source/gdi/pdfextoutdevdata.cxx @@ -695,12 +695,12 @@ sal_Int32 PDFExtOutDevData::CreateLink( const Rectangle& rRect, sal_Int32 nPageN return mpGlobalSyncData->mCurId++; } -sal_Int32 PDFExtOutDevData::CreateScreen(const Rectangle& rRect) +sal_Int32 PDFExtOutDevData::CreateScreen(const Rectangle& rRect, sal_Int32 nPageNr) { mpGlobalSyncData->mActions.push_back(PDFExtOutDevDataSync::CreateScreen); mpGlobalSyncData->mParaRects.push_back(rRect); mpGlobalSyncData->mParaMapModes.push_back(mrOutDev.GetMapMode()); - mpGlobalSyncData->mParaInts.push_back(mnPage); + mpGlobalSyncData->mParaInts.push_back(nPageNr); return mpGlobalSyncData->mCurId++; } -- cgit