Bug 581803 - Foreground Color Not Updated When Text Displayed is One Character
Summary: Foreground Color Not Updated When Text Displayed is One Character
Status: NEW
Alias: None
Product: GEF
Classification: Tools
Component: GEF-Legacy Draw2d (show other bugs)
Version: 3.10.100   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: gef-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-04-12 22:31 EDT by Jun Lin Lee CLA
Modified: 2023-04-13 08:06 EDT (History)
1 user (show)

See Also:


Attachments
Bug replication code (2.02 KB, text/plain)
2023-04-12 22:33 EDT, Jun Lin Lee CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jun Lin Lee CLA 2023-04-12 22:31:12 EDT
When there are two different Labels displaying the same single character text, and the two Labels have different foreground colors set to them, the second Label's foreground color will still follow the first Label's foreground color. 

This is found to happen in v3.10.100, but issue still persists when changing to v3.12.0 and v3.13.0

The observed behavior of the issue:
- For each Labels that displays same one character texts, they will have the same foreground color
- The foreground colors of the Labels that displays the same one character texts will follow the first `setForegroundColor()` color that was passed to that Label.
For example:
firstLabel - No foreground color set
secondLabel- Blue foreground color set
thirdLabel - Red foreground color set
All three labels will have blue foreground color.
Comment 1 Jun Lin Lee CLA 2023-04-12 22:33:11 EDT
Created attachment 289027 [details]
Bug replication code

The second Label's foreground color follows the first Label's foreground color, even if they are different
Comment 2 Phil Beauvoir CLA 2023-04-13 05:17:25 EDT
Hi, GEF and Draw2d projects are now maintained at GitHub. Please open a new issue with this information here - https://github.com/eclipse/gef-classic/issues
Comment 3 Phil Beauvoir CLA 2023-04-13 08:06:15 EDT
I reported it here:

https://github.com/eclipse/gef-classic/issues/173