Skip to content

getCharacterBoundsOnScreen(int from, int to) failed to get the bounds on screen #1272

@mindolph

Description

@mindolph

Since v0.11.5, the method getCharacterBoundsOnScreen(int from, int to) failed to get the bounds on screen.
eg:

invoking getCharacterBoundsOnScreen(0, 0) throws exception:

java.lang.IllegalArgumentException: This ParagraphText is not the parent of the given shape (CaretNode(name= position=0 paragraphIndex=0 columnPosition=0 Path[elements=[MoveTo[x=0.0, y=0.0], LineTo[x=0.0, y=0.0]], fill=null, fillRule=NON_ZERO, stroke=0x000000ff, strokeWidth=1.0])):
Expected: ParagraphText@1196785562(paragraph=Par[[]; StyledSegment(segment=# Markdown style=[heading])])
Actual:   null

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions