mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-08 12:59:53 +02:00
TAChart: Combine {$hints on} and {$warnings on} with {$push} and {$pop}
git-svn-id: trunk@60229 -
This commit is contained in:
parent
f73562b87c
commit
23ebdb5faf
@ -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;
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user