From 0dc6db6fafd4a4fa9a5ad8d2d09c7ec8ae3ae04e Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Tue, 29 Jul 2014 16:59:10 +0200 Subject: Impress/Tiled Rendering: return correct number for getPart. It looks like page ids begin with 1. Change-Id: I367285b8cfa1fcc9b8f22a9bb3c679d7e9579099 --- sd/source/ui/unoidl/unomodel.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sd') diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index b6754ec498d3..7726de407768 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2256,7 +2256,8 @@ int SdXImpressDocument::getPart() DrawViewShell* pViewSh = dynamic_cast< DrawViewShell* >( mpDoc->GetDocSh()->GetViewShell() ); if (pViewSh) { - return pViewSh->GetCurPageId(); + // curPageId seems to start at 1 + return pViewSh->GetCurPageId() - 1; } return 0; } -- cgit