diff options
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; } |