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 1376

Summary: Legend checkboxes incorrectly positioned for Chinese Series titles
Product: VCL TeeChart Reporter: yeray alonso <yeray>
Component: LegendAssignee: Steema Issue Manager <issuemanager>
Status: CONFIRMED ---    
Severity: enhancement    
Priority: ---    
Version: 150901   
Target Milestone: ---   
Hardware: PC   
OS: Windows   
URL: http://www.teechart.net/support/viewtopic.php?f=3&t=15875
Chart Series: --- Delphi / C++ Builder RAD IDE Version:
Attachments: test project

Description yeray alonso 2015-11-26 04:05:40 EST
Created attachment 527 [details]
test project

Having a series with a Chinese title, the legend checkboxes are displaced vertically. Here a sample:

uses Series, TeeConst;

var tmpSeries: TLineSeries;

procedure TForm1.FormCreate(Sender: TObject);
var i: Integer;
begin
  Chart1.View3D:=false;
  Chart1.Legend.CheckBoxes:=true;

  for i:=0 to 3 do
  begin
    tmpSeries:=Chart1.AddSeries(TLineSeries) as TLineSeries;
    if (i mod 2 = 1) then
      tmpSeries.Title:= '这是一个错误';
  end;
end;

I also attach a simple project.
I've reproduced it with RAD XE and TeeChart 2014.11 and 2015.16.

This looks similar to this but not exactly:
http://bugs.teechart.net/show_bug.cgi?id=899