Unknown said: It is not nessessary to call EnsureCapacity before setting the bit
Incorrect! A Bitmask seems to have capacity for small bit indices, such as for a line element (type 3) or shape element (type 6). For larger indices, such as a text element…