[go: up one dir, main page]

Menu

Commit [r11]  Maximize  Restore  History

oofTextSizer::CalculateWrapping Fix rare bug Bob Keeney found in rbrw (testament to how exact the port to REALbasic is - bug was easily traced back to original source).

If a column word-wrapped and there were TWO spaces before the word which was wrapped to the next line, the length was out and a crash would result. I didn't have time to try to replicate this in OOFILE as it requires you to get the column width exactly right. The rbrw version is helped by having started a unit testing project which makes it easier to test minor things in isolation.

andydent 2009-09-13

changed /trunk/source/utils/oofdraw.cpp