You've already forked lazarus-ccr
tvplanit: Fix GanttView not displaying last event if fully within last day.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8541 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -32,7 +32,7 @@ Portions created by TurboPower Software Inc. are Copyright (C) 2002 TurboPower S
|
||||
|
||||
Contributor(s): "/>
|
||||
<Version Major="1" Minor="7"/>
|
||||
<Files Count="69">
|
||||
<Files Count="68">
|
||||
<Item1>
|
||||
<Filename Value="source\vpbase.pas"/>
|
||||
<UnitName Value="VpBase"/>
|
||||
@ -302,13 +302,9 @@ Contributor(s): "/>
|
||||
<UnitName Value="VpGanttView"/>
|
||||
</Item67>
|
||||
<Item68>
|
||||
<Filename Value="source\vpganttview.pas"/>
|
||||
<UnitName Value="VpGanttView"/>
|
||||
</Item68>
|
||||
<Item69>
|
||||
<Filename Value="source\vpganttviewpainter.pas"/>
|
||||
<UnitName Value="VpGanttViewPainter"/>
|
||||
</Item69>
|
||||
</Item68>
|
||||
</Files>
|
||||
<CompatibilityMode Value="True"/>
|
||||
<i18n>
|
||||
|
@ -305,7 +305,7 @@ begin
|
||||
event := eventRec.Event;
|
||||
if event.EndTime < FGanttView.FirstDate then
|
||||
Continue;
|
||||
if event.StartTime > FGanttView.LastDate then
|
||||
if event.StartTime > FGanttView.LastDate + 1then
|
||||
exit;
|
||||
R := ScaleRect(eventRec.EventRect);
|
||||
OffsetRect(R, -dx, -dy);
|
||||
|
Reference in New Issue
Block a user