fpspreadsheet: Fix position of right TChartAxis read from xlsx file.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9273 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
parent
05d6ec914a
commit
c0659755d3
@ -2233,12 +2233,18 @@ begin
|
|||||||
case AWorkbookAxis.Position of
|
case AWorkbookAxis.Position of
|
||||||
capStart:
|
capStart:
|
||||||
begin
|
begin
|
||||||
axis.Position := 0;
|
if (axis.Alignment = calLeft) or (axis.Alignment = calBottom) then
|
||||||
|
axis.Position := 0
|
||||||
|
else
|
||||||
|
axis.Position := 100;
|
||||||
axis.PositionUnits := cuPercent;
|
axis.PositionUnits := cuPercent;
|
||||||
end;
|
end;
|
||||||
capEnd:
|
capEnd:
|
||||||
begin
|
begin
|
||||||
axis.Position := 100;
|
if (axis.Alignment = calLeft) or (axis.Alignment = calBottom) then
|
||||||
|
axis.Position := 100
|
||||||
|
else
|
||||||
|
axis.Position := 0;
|
||||||
axis.PositionUnits := cuPercent;
|
axis.PositionUnits := cuPercent;
|
||||||
// To do: Move TAChart axis labels and title to the other side
|
// To do: Move TAChart axis labels and title to the other side
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user