Created attachment 26790 [details] Unit Test See unit test in attachment please
Was reproduced for Win XP & Linux.
Hmm, I've tried it, and I don't see any crashes, but the style isn't showing up in the new file either I did notice an issue with the cloned styles not being persisted quite right, which I think I've fixed in r1095695. Does that fix things for you?
> Hmm, I've tried it, and I don't see any crashes In Office 2007 I've seen message about corrupting styles.xml and suggestion to fix/restore it, when I open generated xlsx. I'll check r1095695.
There have been fixes done in bug 56295 that likely also fix this bug. Therefore I am marking this as duplicate, please try with a recent trunk build and reopen this bug if it still does not work for you. *** This bug has been marked as a duplicate of bug 56295 ***