incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörg Büsse (JIRA) <>
Subject [jira] [Commented] (ODFTOOLKIT-362) TextSelection.replaceWith() ends in an infinite loop
Date Tue, 23 Jul 2013 09:45:08 GMT


Jörg Büsse commented on ODFTOOLKIT-362:

I've updated simple-odf-0.6.6.jar to simple-odf-0.8-incubating.jar to get the new API for
TextSelection.replaceWith(Paragraph), but sticked to odfdom-java-0.8.7.jar to prevent the
dependency hell already mentioned here

The recursion / infinite loop is gone and the replacements are correct, but there is nasty
side effect with creating a new Paragraph and setting the content. All formatting information
is gone.

Is there an easy way to maintain any formatting, font, style name, alignment ... ?
Is the replaced text always wrapped by a paragraph?
> TextSelection.replaceWith() ends in an infinite loop
> ----------------------------------------------------
>                 Key: ODFTOOLKIT-362
>                 URL:
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: odfdom-0.8.7
>            Reporter: Jörg Büsse
>         Attachments:, testTemplate.odt
> Replacing text parts of a table cell can end in an infinite loop. We created a simple
class to reproduce/demonstrate the issue.
> Used libraries:
> odfdom-java-0.8.7.jar
> simple-odf-0.6.6.jar
> Also tried the libraries from odftoolkit-0.5-incubating-bin.tar.gz:
> odfdom-java-0.8.8-incubating.jar
> simple-odf-0.7-incubating.jar

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message