Skip to content

Commit 4ec057b

Browse files
committed
BUG: Edit assert for XMLOffsetsManager
1 parent 9cdb120 commit 4ec057b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

IO/XML/vtkXMLOffsetsManager.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ class OffsetsManagerGroup
142142
}
143143
void Allocate(int numElements, int numTimeSteps)
144144
{
145-
assert(numElements > 0);
145+
assert(numElements >= 0); //allow 0 for empty FieldData
146146
assert(numTimeSteps > 0);
147147
this->Internals.resize(numElements);
148148
for(int i=0; i<numElements; i++)

0 commit comments

Comments
 (0)