Multi-line node text not correctly displayed
Posted: Mon Jul 14, 2014 11:19 am
In the TTree component of TeeChart 2014 of May 12, 2014, multi-line node text not correctly displayed, if the line count is even.
Therefore line 4164 in TeeTree.pas, function TTreeNodeShape.DrawText
has to be fixed as follows:
Therefore line 4164 in TeeTree.pas, function TTreeNodeShape.DrawText
Code: Select all
vtaCenter: tmpPosY:=tmpMidY + Round( (t*tmpH) - ((tmpCount div 2)*tmpH) - (tmpH*0.5) );
Code: Select all
vtaCenter: tmpPosY:=tmpMidY + Round( (t*tmpH) - ((tmpCount div 2)*tmpH) - (tmpCount mod 2)*(tmpH*0.5) );