You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by bu...@apache.org on 2008/11/27 10:06:28 UTC

DO NOT REPLY [Bug 46302] [PATCH] HSSFCellStyle cloneStyleFrom always throws exception.

https://issues.apache.org/bugzilla/show_bug.cgi?id=46302





--- Comment #1 from lorenzo benvenuti <lo...@yahoo.com>  2008-11-27 01:06:27 PST ---
Created an attachment (id=22956)
 --> (https://issues.apache.org/bugzilla/attachment.cgi?id=22956)
Patch that should solve a bug related to the cloneStyleFrom method of
XSSFCellStyle class (and HSSFCellStyle as well)

I'm not so familiar with open source developing, so I don't know if this is the
right way to proceed. If not, please excuse me. 
I came across a bug in XSSFCellStyle and consequently, in this bug. Probably I
managed how to solve both (a first look at the generated xlsx seems to confirm
that I was able to clone the style). You can find the changes I made to the
sources in the attached patch. In XSSFCellStyle.java I tried to use the style
used in HSSFCellStyle.java. I'm not sure it's an efficient, elegant or complete
solution but I hope this can help.

Regards, 

Lorenzo Benvenuti


-- 
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-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org