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): "/>
|
Contributor(s): "/>
|
||||||
<Version Major="1" Minor="7"/>
|
<Version Major="1" Minor="7"/>
|
||||||
<Files Count="69">
|
<Files Count="68">
|
||||||
<Item1>
|
<Item1>
|
||||||
<Filename Value="source\vpbase.pas"/>
|
<Filename Value="source\vpbase.pas"/>
|
||||||
<UnitName Value="VpBase"/>
|
<UnitName Value="VpBase"/>
|
||||||
@ -302,13 +302,9 @@ Contributor(s): "/>
|
|||||||
<UnitName Value="VpGanttView"/>
|
<UnitName Value="VpGanttView"/>
|
||||||
</Item67>
|
</Item67>
|
||||||
<Item68>
|
<Item68>
|
||||||
<Filename Value="source\vpganttview.pas"/>
|
|
||||||
<UnitName Value="VpGanttView"/>
|
|
||||||
</Item68>
|
|
||||||
<Item69>
|
|
||||||
<Filename Value="source\vpganttviewpainter.pas"/>
|
<Filename Value="source\vpganttviewpainter.pas"/>
|
||||||
<UnitName Value="VpGanttViewPainter"/>
|
<UnitName Value="VpGanttViewPainter"/>
|
||||||
</Item69>
|
</Item68>
|
||||||
</Files>
|
</Files>
|
||||||
<CompatibilityMode Value="True"/>
|
<CompatibilityMode Value="True"/>
|
||||||
<i18n>
|
<i18n>
|
||||||
|
@ -305,7 +305,7 @@ begin
|
|||||||
event := eventRec.Event;
|
event := eventRec.Event;
|
||||||
if event.EndTime < FGanttView.FirstDate then
|
if event.EndTime < FGanttView.FirstDate then
|
||||||
Continue;
|
Continue;
|
||||||
if event.StartTime > FGanttView.LastDate then
|
if event.StartTime > FGanttView.LastDate + 1then
|
||||||
exit;
|
exit;
|
||||||
R := ScaleRect(eventRec.EventRect);
|
R := ScaleRect(eventRec.EventRect);
|
||||||
OffsetRect(R, -dx, -dy);
|
OffsetRect(R, -dx, -dy);
|
||||||
|
Reference in New Issue
Block a user