diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-29 16:59:10 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-07-30 12:44:03 +0200 |
commit | 0dc6db6fafd4a4fa9a5ad8d2d09c7ec8ae3ae04e (patch) | |
tree | 9c83985af13af69bfeec8ddab2b7114d510ef9e9 /sd | |
parent | dd032c3f3b6d6d3142b86860b02efd47c27504cc (diff) |
Impress/Tiled Rendering: return correct number for getPart.
It looks like page ids begin with 1.
Change-Id: I367285b8cfa1fcc9b8f22a9bb3c679d7e9579099
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 3 |
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; } |