Changeset 511
- Timestamp:
- 05/30/06 01:17:28
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/calendar3/appcommon/src/org/bedework/appcommon/TimeView.java
r372 r511 317 317 XXX followed caldav which might be wrong. Try 318 318 3. ((evEnd > :start) and (evEnd < :end))) 319 320 ((evstart < end) and ((evend > start) or 321 ((evstart = evend) and (evend >= start)))) 319 322 */ 320 323 324 /* 321 325 int evstSt = evStart.compareTo(start); 322 326 int evendSt = evEnd.compareTo(start); … … 329 333 ((evendSt > 0) && (evEnd.compareTo(end) < 0))) { 330 334 // Passed the tests. 331 if (debug) { 332 debugMsg("Event passed range " + start + "-" + end + 333 " with dates " + evStart + "-" + evEnd + 334 ": " + ev.getSummary()); 335 //if (debug) { 336 // debugMsg("Event passed range " + start + "-" + end + 337 // " with dates " + evStart + "-" + evEnd + 338 // ": " + ev.getSummary()); 339 //} 340 al.add(ei); 341 } 342 */ 343 344 int evstSt = evStart.compareTo(end); 345 if (evstSt < 0) { 346 int evendSt = evEnd.compareTo(start); 347 348 //debugMsg(" event " + evStart + " to " + evEnd); 349 350 if ((evendSt > 0) || 351 (evStart.equals(evEnd) && (evendSt >= 0))) { 352 // Passed the tests. 353 if (debug) { 354 debugMsg("Event passed range " + start + "-" + end + 355 " with dates " + evStart + "-" + evEnd + 356 ": " + ev.getSummary()); 357 } 358 al.add(ei); 335 359 } 336 al.add(ei);337 360 } 338 361 } trunk/calendar3/calFacade/src/org/bedework/calfacade/CalFacadeUtil.java
r510 r511 679 679 680 680 /* Period is within range if: 681 1. (((evStart <= :start) and (evEnd > :start)) or 682 2. ((evStart >= :start) and (evStart < :end)) or 683 3. ((evEnd > :start) and (evEnd <= :end))) 684 685 XXX followed caldav which might be wrong. Try 686 3. ((evEnd > :start) and (evEnd < :end))) 687 */ 688 689 int evstSt = er.start.compareTo(start); 690 int evendSt = er.end.compareTo(start); 681 ((evstart < end) and ((evend > start) or 682 ((evstart = evend) and (evend >= start)))) 683 */ 684 685 int evstSt = er.start.compareTo(end); 691 686 692 687 //debugMsg(" event " + evStart + " to " + evEnd); 693 688 694 if (((evstSt <= 0) && (evendSt > 0)) || 695 ((evstSt >= 0) && (er.start.compareTo(end) < 0)) || 696 //((evendSt > 0) && (evEnd.compareTo(end) <= 0))) { 697 ((evendSt > 0) && (er.end.compareTo(end) < 0))) { 698 // Passed the tests. 699 /* 700 if (debug) { 701 debugMsg("Event passed range " + start + "-" + end + 702 " with dates " + evStart + "-" + evEnd + 703 ": " + ev.getSummary()); 704 }*/ 705 al.add(er.entity); 689 if (evstSt < 0) { 690 int evendSt = er.end.compareTo(start); 691 692 if ((evendSt > 0) || 693 (er.start.equals(er.end) && (evendSt >= 0))) { 694 // Passed the tests. 695 //if (debug) { 696 // debugMsg("Event passed range " + start + "-" + end + 697 // " with dates " + evStart + "-" + evEnd + 698 // ": " + ev.getSummary()); 699 //} 700 al.add(er.entity); 701 } 706 702 } 707 703 }
