summaryrefslogtreecommitdiff
path: root/svx/inc
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2001-02-09 11:49:37 +0000
committerSven Jacobi <sj@openoffice.org>2001-02-09 11:49:37 +0000
commit5a3fefe3f41b8a357b97a3699714cd23bff6bef6 (patch)
tree070a6fd7f340538bfa3a5c491ec74f618ff3b8d2 /svx/inc
parent70abd8636c0a310934cca3d2d4253691acc4406c (diff)
IsMore now also returns correct bool when index is a multple of 256
Diffstat (limited to 'svx/inc')
-rw-r--r--svx/inc/svditer.hxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/inc/svditer.hxx b/svx/inc/svditer.hxx
index 9ba789476359..1296ec9e58f4 100644
--- a/svx/inc/svditer.hxx
+++ b/svx/inc/svditer.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: svditer.hxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: aw $ $Date: 2000-11-13 17:20:37 $
+ * last change: $Author: sj $ $Date: 2001-02-09 12:49:37 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -92,7 +92,7 @@ public:
SdrObjListIter(const SdrObject& rGroup, SdrIterMode eMode = IM_DEEPNOGROUPS, BOOL bReverse = FALSE);
void Reset() { mnIndex = (mbReverse ? maObjList.Count() : 0L); }
- BOOL IsMore() const { return (mbReverse ? mnIndex : (mnIndex < maObjList.Count())); }
+ BOOL IsMore() const { return (mbReverse ? mnIndex != 0 : ( mnIndex < maObjList.Count())); }
SdrObject* Next() { return (SdrObject*)maObjList.GetObject(mbReverse ? --mnIndex : mnIndex++); }
};