Commit 37df0bd2 authored by Ken Martin's avatar Ken Martin

Better assert for test

Better assert for test
parent 941be8d8
......@@ -640,7 +640,7 @@ void vtkFreeTypeTools::MapTextPropertyToId(vtkTextProperty *tprop,
angle += 3600;
}
// We really should not use more than 12 bits
assert(angle > 0 && (angle & 0xfffff000) == 0);
assert(angle >= 0 && (angle & 0xfffff000) == 0);
angle <<= bits;
vtkIdType merged = (bold | italic | angle);
......
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