mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-12 10:19:15 +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
|
while true do begin
|
||||||
p := PChartValueText(lst[j - AStart]);
|
p := PChartValueText(lst[j - AStart]);
|
||||||
lst[j - AStart] := nil;
|
lst[j - AStart] := nil;
|
||||||
|
{$PUSH}
|
||||||
{$HINTS OFF} // Work around the fpc bug #19582.
|
{$HINTS OFF} // Work around the fpc bug #19582.
|
||||||
next := (PtrUInt(p) - PtrUInt(@AValues[0])) div SizeOf(p^);
|
next := (PtrUInt(p) - PtrUInt(@AValues[0])) div SizeOf(p^);
|
||||||
{$HINTS ON}
|
{$POP}
|
||||||
if next = i then break;
|
if next = i then break;
|
||||||
AValues[j] := p^;
|
AValues[j] := p^;
|
||||||
j := next;
|
j := next;
|
||||||
|
@ -1421,10 +1421,11 @@ var
|
|||||||
defaultDrawing: Boolean = true;
|
defaultDrawing: Boolean = true;
|
||||||
begin
|
begin
|
||||||
FConnectorData.FBounds := GetClientRect;
|
FConnectorData.FBounds := GetClientRect;
|
||||||
|
{$PUSH}
|
||||||
{$WARNINGS OFF}
|
{$WARNINGS OFF}
|
||||||
if Assigned(OnChartPaint) then
|
if Assigned(OnChartPaint) then
|
||||||
OnChartPaint(Self, FConnectorData.FBounds, defaultDrawing);
|
OnChartPaint(Self, FConnectorData.FBounds, defaultDrawing);
|
||||||
{$WARNINGS ON}
|
{$POP}
|
||||||
if defaultDrawing then
|
if defaultDrawing then
|
||||||
with EffectiveGUIConnector do begin
|
with EffectiveGUIConnector do begin
|
||||||
SetBounds(FConnectorData);
|
SetBounds(FConnectorData);
|
||||||
|
Loading…
Reference in New Issue
Block a user