Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-33409

TLF crashes when hypens are shown in a multi span textFlow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • Adobe Flex SDK 4.6 (Release)
    • None
    • None
    • TLF editing

    Description

      When soft hyphens are used and shown, in a textFlow with 2 or more spans, TLF crashes when typing.

      Import the underlying text flow xml. Resize the text area until the hyphen is visible. Then start typing AFTER the hypened word, also pressing the enter key. TLF crashes.

      Sample textFLow (if the soft hyphen is not show, insert a new one in the appropriate word):

      <TextFlow color="#000000" fontSize="12" lineHeight="14" paddingBottom="0" paddingLeft="10" paddingRight="10" paddingTop="0" whiteSpaceCollapse="preserve" version="2.0.0" xmlns="http://ns.adobe.com/textLayout/2008">
      <p>
      <span backgroundColor="#ffffff" textDecoration="underline">First Span</span>
      <span backgroundColor="#ffffff" textDecoration="none"> Second span. This text has a hypen in the next long word LongWord­WithAHyphen. Make sure the hypen is shown! Then start typing and pressing enter till TLF crashes (should happen fast enough)</span>
      </p>
      </TextFlow>

      It seems that the textLine is damaged but the text engine fails to recompose the line properly.

      Attachments

        1. ComposeState.as
          18 kB
          Alex Harui
        2. Test.fxp
          9 kB
          Maurice Mullens
        3. FlowLeafElement.as
          45 kB
          Alex Harui
        4. BaseCompose.as
          130 kB
          Alex Harui
        5. ExampleDebug.fxp
          621 kB
          Maurice Mullens
        6. FLEX33409.patch
          7 kB
          Alex Harui
        7. FlowComposerBase.as
          21 kB
          Alex Harui
        8. ContainerController.as
          185 kB
          Alex Harui
        9. ParagraphElement.as
          33 kB
          Alex Harui
        10. textLayout.swc
          496 kB
          Alex Harui

        Issue Links

          Activity

            People

              aharui Alex Harui
              woodwing_dev Woodwing Developer
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: