TAChart: Combine {$hints on} and {$warnings on} with {$push} and {$pop}

git-svn-id: trunk@60229 -
This commit is contained in:
wp 2019-01-27 11:28:43 +00:00
parent f73562b87c
commit 23ebdb5faf
2 changed files with 4 additions and 2 deletions

View File

@ -1206,9 +1206,10 @@ begin
while true do begin
p := PChartValueText(lst[j - AStart]);
lst[j - AStart] := nil;
{$PUSH}
{$HINTS OFF} // Work around the fpc bug #19582.
next := (PtrUInt(p) - PtrUInt(@AValues[0])) div SizeOf(p^);
{$HINTS ON}
{$POP}
if next = i then break;
AValues[j] := p^;
j := next;

View File

@ -1421,10 +1421,11 @@ var
defaultDrawing: Boolean = true;
begin
FConnectorData.FBounds := GetClientRect;
{$PUSH}
{$WARNINGS OFF}
if Assigned(OnChartPaint) then
OnChartPaint(Self, FConnectorData.FBounds, defaultDrawing);
{$WARNINGS ON}
{$POP}
if defaultDrawing then
with EffectiveGUIConnector do begin
SetBounds(FConnectorData);