LazReport: Fix column width calc, fix issue #30367

git-svn-id: trunk@52677 -
This commit is contained in:
jesus 2016-07-12 22:58:15 +00:00
parent 156ab97c17
commit cf63e5c007
2 changed files with 2 additions and 2 deletions

View File

@ -7876,7 +7876,7 @@ begin
end;
if ColCount = 0 then ColCount := 1;
ColWidth := (RightMargin - LeftMargin) div ColCount;
ColWidth := (RightMargin - LeftMargin - (ColCount-1)*ColGap) div ColCount;
end;
procedure TfrPage.PrepareObjects;

View File

@ -1339,7 +1339,7 @@ var
Rectangle(LeftMargin, TopMargin, RightMargin, BottomMargin);
if ColCount > 1 then
begin
ColWidth := (RightMargin - LeftMargin) div ColCount;
ColWidth := (RightMargin - LeftMargin - (ColCount-1)*ColGap) div ColCount;
Pen.Style := psDot;
j := LeftMargin;
for i := 1 to ColCount do