[MOAB-dev] r1504 - MOAB/trunk
tautges at mcs.anl.gov
tautges at mcs.anl.gov
Wed Jan 2 18:13:56 CST 2008
Author: tautges
Date: 2008-01-02 18:13:56 -0600 (Wed, 02 Jan 2008)
New Revision: 1504
Modified:
MOAB/trunk/SequenceManager.cpp
Log:
Correcting off-by-one error.
Modified: MOAB/trunk/SequenceManager.cpp
===================================================================
--- MOAB/trunk/SequenceManager.cpp 2008-01-02 19:53:33 UTC (rev 1503)
+++ MOAB/trunk/SequenceManager.cpp 2008-01-03 00:13:56 UTC (rev 1504)
@@ -279,7 +279,7 @@
MeshSetSequence* seq;
if (seqptr != typeData[MBENTITYSET].end()) {
seq = static_cast<MeshSetSequence*>(*seqptr);
- if (seq->start_handle() + 1 == handle) {
+ if (seq->start_handle() - 1 == handle) {
rval = seq->push_front( 1, &flags );
if (MB_SUCCESS == rval) {
rval = typeData[MBENTITYSET].notify_prepended( seqptr );
@@ -288,7 +288,7 @@
}
return rval;
}
- else if (seq->end_handle() == handle + 1) {
+ else if (seq->end_handle() + 1 == handle) {
rval = seq->push_back( 1, &flags );
if (MB_SUCCESS == rval) {
rval = typeData[MBENTITYSET].notify_appended( seqptr );
More information about the moab-dev
mailing list