Correct problem with bad triangle coordinates (which define zero-length sides) in text command