[Bug 62018] New: RichTextString.numFormattingRuns not work on pasted cell contains styled text.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 62018] New: RichTextString.numFormattingRuns not work on pasted cell contains styled text.

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62018

            Bug ID: 62018
           Summary: RichTextString.numFormattingRuns not work on pasted
                    cell contains styled text.
           Product: POI
           Version: 3.17-FINAL
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: XSSF
          Assignee: [hidden email]
          Reporter: [hidden email]
  Target Milestone: ---

There is a method numFormattingRuns() in RichTextString class(interface).

I have been using that method to get font and style of a rich text.

However, there is a bug that numFormattingRuns() always return 0(zero) when
processing cell was pasted from other cell with string-level style(it means
partial text was styled, not entire cell).

So I cannot get same returned value of numFormattingRuns() and rich string with
style.

In a case I made change cell string or style on pasted cell, then
numFormattingRuns() returns value that I expected.

I report this bug.

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 62018] RichTextString.numFormattingRuns not work on pasted cell contains styled text.

Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62018

Nick Burch <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 OS|                            |All
             Status|NEW                         |NEEDINFO

--- Comment #1 from Nick Burch <[hidden email]> ---
Could you please upload a very small file that demonstrates the problem? A
junit test using it that shows it would be amazing too, but file and details to
trigger should be enough

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

[Bug 62018] RichTextString.numFormattingRuns not work on pasted cell contains styled text.

Bugzilla from bugzilla@apache.org
In reply to this post by Bugzilla from bugzilla@apache.org
https://bz.apache.org/bugzilla/show_bug.cgi?id=62018

Hanbyul Lee <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEEDINFO                    |RESOLVED

--- Comment #2 from Hanbyul Lee <[hidden email]> ---
(In reply to Nick Burch from comment #1)
> Could you please upload a very small file that demonstrates the problem? A
> junit test using it that shows it would be amazing too, but file and details
> to trigger should be enough

Hello, Nick. Thanks for your response.

I have made a test code and found there was no bug on common cells.

Sorry for my mistake.

But I should found a bug on my program from a former work colleague.

Thank you anyway!

--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]