Selection in a Paragraph with non-null background color displays incorrectly
----------------------------------------------------------------------------

                 Key: PIVOT-726
                 URL: https://issues.apache.org/jira/browse/PIVOT-726
             Project: Pivot
          Issue Type: Bug
          Components: wtk
    Affects Versions: 2.0, 2.0.1
         Environment: Windows XP, Mac OS X (at least)
            Reporter: Bill van Melle
            Priority: Minor


If you try to select text in a Paragraph that has a background color, the 
selection background is not painted, but the text is painted white, which means 
that against a white or light background, the text is effectively invisible.  
The problem doesn't happen when the Paragraph has the default (null) background.

Simple example:

<Window maximized="true" 
  xmlns="org.apache.pivot.wtk">
  <TextPane>
    <Document xmlns="org.apache.pivot.wtk.text">
      <Paragraph>
        <TextNode text="Lorem ipsum dolor sit amet, consetetur sadipscing 
elitr..." />
      </Paragraph>
      <Paragraph backgroundColor="white">
        <TextNode text="Lorem ipsum dolor sit amet, consetetur sadipscing 
elitr..." />
      </Paragraph>
    </Document>
  </TextPane>
</Window>

Try making a selection that includes the second line of text, and notice that 
you can't read the text.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to