Uploaded image for project: 'Pivot'
  1. Pivot
  2. PIVOT-772

Exceptions thrown when calling getCharacterBounds of TextArea when incomplete lines exist

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.0.1
    • wtk
    • None
    • Windows XP SP3, JRE 1.6_25 or JRE 1.7 (beta)

    Description

      If partial lines are appended to a TextArea and then "getCharacterBounds" followed by "scrollAreaToVisible" is called, Pivot throws java.lang.IndexOutOfBoundsException from TextAreaSkinParagraphView.getCharacterBounds:
      java.lang.IndexOutOfBoundsException: ix = 38
      at sun.font.StandardGlyphVector.getGlyphLogicalBounds(Unknown Source)
      at org.apache.pivot.wtk.skin.TextAreaSkinParagraphView.getCharacterBounds(TextAreaSkinParagraphView.java:393)
      at org.apache.pivot.wtk.skin.TextAreaSkin.getCharacterBounds(TextAreaSkin.java:442)
      at org.apache.pivot.wtk.TextArea.getCharacterBounds(TextArea.java:1243)

      Attachments

        1. scroll2.log
          13 kB
          Roger Lee Whitcomb
        2. Scroll2.java
          12 kB
          Roger Lee Whitcomb
        3. scroll.log
          4 kB
          Roger Lee Whitcomb
        4. Scroll.java
          10 kB
          Roger Lee Whitcomb
        5. scroll.bxml
          1 kB
          Roger Lee Whitcomb

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            grandinj Noel Grandin
            rwhitcomb Roger Lee Whitcomb
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 48h
                48h
                Remaining:
                Remaining Estimate - 48h
                48h
                Logged:
                Time Spent - Not Specified
                Not Specified

                Slack

                  Issue deployment