diff --git a/darwin/drawtext.m b/darwin/drawtext.m index 579d3863..c6bd9e86 100644 --- a/darwin/drawtext.m +++ b/darwin/drawtext.m @@ -2,7 +2,9 @@ #import "uipriv_darwin.h" #import "draw.h" -// TODO what happens if nLines == 0 in any function? +// TODO on an empty string nLines == 0 +// we must prevent this somehow +// TODO in general, every function could be more robust, but we cannot have a situation where there are zero lines struct uiDrawTextLayout { CFAttributedStringRef attrstr;