Kaydet (Commit) 0dc6db6f authored tarafından Andrzej Hunt's avatar Andrzej Hunt

Impress/Tiled Rendering: return correct number for getPart.

It looks like page ids begin with 1.

Change-Id: I367285b8cfa1fcc9b8f22a9bb3c679d7e9579099
üst dd032c3f
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment