https://issues.apache.org/bugzilla/show_bug.cgi?id=52764
Laszlo Kustra <kl223...@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW --- Comment #2 from Laszlo Kustra <kl223...@gmail.com> 2012-02-25 14:12:59 UTC --- (In reply to comment #1) > How are you creating the additional comments? Does it by any chance include a > call to createDrawingPatriarch? > > If so, you should note the warning in the javadocs - > http://poi.apache.org/apidocs/org/apache/poi/hssf/usermodel/HSSFSheet.html#createDrawingPatriarch() > - "This will have the effect of removing any existing drawings on this sheet." > > (Comments are a kind of drawing) Please have a look at the attached test program to see the answer for yourself. I only call the createDrawingPatriarch() method once, when creating the sheet. The second time, after loading the file from the disk to modify cell comments, I call the getDrawingPatriarch() method to get the existing instance. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@poi.apache.org For additional commands, e-mail: dev-h...@poi.apache.org