Hello, I can't figure out the correct logic of iterating on formatting runs in 3.2-FINAL. Here's my current, inconsistent understanding:
* There are numFormattingRuns() + 1 formatting runs in the string starting at index 0 * However, calling getIndexOfFormattingRun() or getFontOfFormattingRun() with index = numFormattingRuns() causes a NullPointerException * In general, getIndexOfFormattingRun( r ) returns the *end index* of run r * The last run goes from the previous getIndexOfFormattingRun() to the end of the string * The last run has no font associated with it * The font returned for run r is really associated with run r + 1 (by visual comparison with the original spreadsheet) but then the first run has no font associated with it, even though it might be formatted What am I doing wrong? TIA, Karim
