Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 533

Summary: Black font not rendering in Shape series.
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: SeriesAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: normal CC: david
Priority: ---    
Version: 131119   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=14592&p=64348#p64348
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2014-01-09 11:14:16 EST
Setting font color to black in a shape series doesn't work. It works fine with other colors. Code to reproduce:

uses TeeShape;

procedure TForm1.FormCreate(Sender: TObject);
var
  Series1: TChartShape;
begin
  Series1:=TChartShape.Create(Self);
  Series1.FillSampleValues();
  Series1.Text.Text:='Hello World!';
  Series1.Font.Color:=clRed; //This works.
  Series1.Font.Color:=clBlack; //This doesn't work.
  Chart1.AddSeries(Series1);
end;
Comment 1 david berneda 2014-01-13 04:01:42 EST
Fixed.
When Shape font color is the same as Shape background color, font color is changed to avoid text to be invisible.
This check was broken due to a "with" alias effect. 
The fix has been to remove the "with".