summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-29 16:59:10 +0200
committerAndrzej Hunt <andrzej.hunt@collabora.com>2014-07-30 12:44:03 +0200
commit0dc6db6fafd4a4fa9a5ad8d2d09c7ec8ae3ae04e (patch)
tree9c83985af13af69bfeec8ddab2b7114d510ef9e9
parentITiledRenderable: provide default implementations for some methods. (diff)
downloadcore-0dc6db6fafd4a4fa9a5ad8d2d09c7ec8ae3ae04e.tar.gz
core-0dc6db6fafd4a4fa9a5ad8d2d09c7ec8ae3ae04e.zip
Impress/Tiled Rendering: return correct number for getPart.
It looks like page ids begin with 1. Change-Id: I367285b8cfa1fcc9b8f22a9bb3c679d7e9579099
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx3
1 files changed, 2 insertions, 1 deletions
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;
}