]> err.no Git - sope/commitdiff
added missing pref check
authorhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 13 Jul 2005 12:33:10 +0000 (12:33 +0000)
committerhelge <helge@e4a50df8-12e2-0310-a44c-efbce7f8a7e3>
Wed, 13 Jul 2005 12:33:10 +0000 (12:33 +0000)
git-svn-id: http://svn.opengroupware.org/SOPE/trunk@895 e4a50df8-12e2-0310-a44c-efbce7f8a7e3

sope-ical/NGiCal/NGVCard.m

index 04849d1c0c713bcf52e8006055dd62d3ebce1f46..5cc7721388dd5057288387d8fb2be87017d5beb8 100644 (file)
@@ -293,7 +293,8 @@ static NGVCardSaxHandler         *sax   = nil; // THREAD
   
   /* scan for preferred value */
   for (i = 0; i < count; i++) {
-#warning COMPLETE ME
+    if ([[_values objectAtIndex:i] isPreferred])
+      return [_values objectAtIndex:i];
   }
   
   /* just take first in sequence */