From: <ob...@us...> - 2012-02-27 13:22:20
|
Revision: 13243 http://jvcl.svn.sourceforge.net/jvcl/?rev=13243&view=rev Author: obones Date: 2012-02-27 13:22:09 +0000 (Mon, 27 Feb 2012) Log Message: ----------- Add to all schedules, that's much better as most of the time, there are no selections... Modified Paths: -------------- trunk/jvcl/examples/JvTimeFrameWork/PhotoOp/ApptEditUnit.pas Modified: trunk/jvcl/examples/JvTimeFrameWork/PhotoOp/ApptEditUnit.pas =================================================================== --- trunk/jvcl/examples/JvTimeFrameWork/PhotoOp/ApptEditUnit.pas 2012-02-27 12:50:25 UTC (rev 13242) +++ trunk/jvcl/examples/JvTimeFrameWork/PhotoOp/ApptEditUnit.pas 2012-02-27 13:22:09 UTC (rev 13243) @@ -204,9 +204,8 @@ DaysGrid := PhotoOpMain.JvTFDays1; // Add the appt to selected schedule(s) - If DaysGrid.ValidSelection Then - For I := DaysGrid.SelStart.X to DaysGrid.SelEnd.X do - Appt.AddSchedule(DaysGrid.Cols[I].SchedName); + For I := 0 to DaysGrid.Cols.Count - 1 do + Appt.AddSchedule(DaysGrid.Cols[I].SchedName); // Now that we're done working with the appointment and it is // actually assigned to a schedule, we should set the Persistent This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |