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 - Black font not rendering in Shape series.
Summary: Black font not rendering in Shape series.
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Series (show other bugs)
Version: 131119
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Steema Issue Manager
URL: http://www.teechart.net/support/viewt...
Keywords:
Depends on:
Blocks:
 
Reported: 2014-01-09 11:14 EST by narcís calvet
Modified: 2014-01-13 04:01 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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".