Kaydet (Commit) 323d10c7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Assume nPageNum shall be compared against 0 or 1 here

...depending on DOCUMENT_TYPE_IMPRESS, similar to how the nPgNum argument to the
SdDrawDocument::GetMasterSdPage call a few lines up is computed.

Change-Id: I8a13ac72868d96d486c071a4a705268dd888c1eb
üst d9904d19
......@@ -1171,7 +1171,7 @@ SdPage* AnnotationManagerImpl::GetNextPage( SdPage* pPage, bool bForeward )
}
else
{
if( nPageNum == (mpDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS) ? 0 : 1 )
if( nPageNum == (mpDoc->GetDocumentType() == DOCUMENT_TYPE_IMPRESS ? 0 : 1) )
{
// we reached beginning of master pages, start with end if pages
return mpDoc->GetSdPage( mpDoc->GetSdPageCount(PK_STANDARD)-1, PK_STANDARD );
......
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