You've already forked lazarus-ccr
tvplanit: Fix width of initial month in TVpGanttView
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8439 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -1281,6 +1281,8 @@ begin
|
|||||||
nDays := DayOf(FEndDate)
|
nDays := DayOf(FEndDate)
|
||||||
else
|
else
|
||||||
nDays := DaysInMonth(dm);
|
nDays := DaysInMonth(dm);
|
||||||
|
if dm + nDays > FEndDate then
|
||||||
|
nDays := trunc(FEndDate) - trunc(dm);
|
||||||
x2 := x1 + nDays * ColWidth;
|
x2 := x1 + nDays * ColWidth;
|
||||||
FMonthRecords[i].Rect := Rect(x1, y1, x2, y2);
|
FMonthRecords[i].Rect := Rect(x1, y1, x2, y2);
|
||||||
FMonthRecords[i].Date := dm;
|
FMonthRecords[i].Date := dm;
|
||||||
|
Reference in New Issue
Block a user