equal
deleted
inserted
replaced
417 // For instances finishing the next day (now possible with unified DateTime editor), |
417 // For instances finishing the next day (now possible with unified DateTime editor), |
418 // we have to do our best to match the instance time exactly - otherwise we could |
418 // we have to do our best to match the instance time exactly - otherwise we could |
419 // match the LocalUid to the incorrect instance in a series. |
419 // match the LocalUid to the incorrect instance in a series. |
420 for ( TInt i=0; i < instances.Count() && !result; ++i ) |
420 for ( TInt i=0; i < instances.Count() && !result; ++i ) |
421 { |
421 { |
422 if( instances[i]->Entry().LocalUidL() == aId.iEntryLocalUid ) |
422 if( (instances[i]->InstanceIdL().iCollectionId == aId.iColId) && (instances[i]->Entry().LocalUidL() == aId.iEntryLocalUid )) // comparing the collection id and Local Uid |
423 { |
423 { |
424 // Check the instance time matches. |
424 // Check the instance time matches. |
425 if( instances[i]->StartTimeL().TimeLocalL() == aId.iInstanceTime ) |
425 if( instances[i]->StartTimeL().TimeLocalL() == aId.iInstanceTime ) |
426 { |
426 { |
427 result = instances[i]; |
427 result = instances[i]; |