Pivot
  1. Pivot
  2. PIVOT-772

Exceptions thrown when calling getCharacterBounds of TextArea when incomplete lines exist

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.1
    • Component/s: wtk
    • Labels:
      None
    • Environment:
      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)

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

        Activity

          People

          • Assignee:
            Noel Grandin
            Reporter:
            Roger Whitcomb
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Due:
              Created:
              Updated:
              Resolved:

              Time Tracking

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

                Development