[Openproj-commitlog] openproj_core/src/com/projity/pm/calendar CalendarDefinition.java, 1.4, 1.5
Open Source desktop project management
Brought to you by:
akheirol
From: Howard K. <ne...@us...> - 2008-04-30 19:48:09
|
Update of /cvsroot/openproj/openproj_core/src/com/projity/pm/calendar In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20726/src/com/projity/pm/calendar Modified Files: CalendarDefinition.java Log Message: Index: CalendarDefinition.java =================================================================== RCS file: /cvsroot/openproj/openproj_core/src/com/projity/pm/calendar/CalendarDefinition.java,v retrieving revision 1.4 retrieving revision 1.5 diff -u -d -r1.4 -r1.5 --- CalendarDefinition.java 19 Mar 2008 00:54:32 -0000 1.4 +++ CalendarDefinition.java 30 Apr 2008 19:48:14 -0000 1.5 @@ -476,8 +476,10 @@ difference -= week.getWeekDay(dayOfWeek(exceptionDay)).getDuration(); difference += exceptions[i].getDuration(); i += step; - if (i < 0) - System.out.println("error"); + if (i < 0 || i >= exceptions.length) { +// System.out.println("error"); + break; // added april 30 2008 hk + } exceptionDay = exceptions[i].getStart(); } return difference; |