incubator-odf-dev mailing list archives

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

    [ https://issues.apache.org/jira/browse/ODFTOOLKIT-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13716265#comment-13716265
] 

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 http://www.mail-archive.com/odf-users@incubator.apache.org/msg00222.html

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: https://issues.apache.org/jira/browse/ODFTOOLKIT-362
>             Project: ODF Toolkit
>          Issue Type: Bug
>          Components: simple api
>    Affects Versions: odfdom-0.8.7
>            Reporter: Jörg Büsse
>         Attachments: OdfBug.java, 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: http://www.atlassian.com/software/jira

Mime
View raw message