summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2014-01-15 12:07:06 +0100
committerStephan Bergmann <sbergman@redhat.com>2014-01-15 13:59:25 +0100
commit323d10c7975c34125009694a42c476ce83f031c4 (patch)
tree28fb15bd43f9ee0af3c5b7890c89d037128cb652 /sd
parentd9904d199c7a3fd5b14051aa9bbae160603ca9a7 (diff)
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
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/annotations/annotationmanager.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/annotations/annotationmanager.cxx b/sd/source/ui/annotations/annotationmanager.cxx
index a74608c806a0..fdcba15d6300 100644
--- a/sd/source/ui/annotations/annotationmanager.cxx
+++ b/sd/source/ui/annotations/annotationmanager.cxx
@@ -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 );