Monotone-Parent: 68ac68112d48188262bfd33776567f9be9e3dd97

Monotone-Revision: d005b9c392fd087db1701fb458d40b135f0d046d

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2010-06-08T18:31:00
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2010-06-08 18:31:00 +00:00
parent 6e4fd60135
commit 18a21c7221
2 changed files with 14 additions and 5 deletions
+5
View File
@@ -1,3 +1,8 @@
2010-06-08 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* iCalXMLRenderer.m (-[CardGroup xmlRender]): don't append empty
rendering from child elements to avoid an exception.
2010-06-04 Wolfgang Sourdeau <wsourdeau@inverse.ca>
* iCalXMLRenderer.m: new class module for exporting iCalCalendar
+9 -5
View File
@@ -298,7 +298,7 @@
- (NSString *) xmlRender
{
NSString *lowerTag;
NSString *lowerTag, *childRendering;
int count, max;
NSMutableString *rendering;
NSMutableArray *properties, *components;
@@ -313,10 +313,14 @@
for (count = 0; count < max; count++)
{
currentChild = [children objectAtIndex: count];
if ([currentChild isKindOfClass: [CardGroup class]])
[components addObject: [currentChild xmlRender]];
else
[properties addObject: [currentChild xmlRender]];
childRendering = [currentChild xmlRender];
if (childRendering)
{
if ([currentChild isKindOfClass: [CardGroup class]])
[components addObject: childRendering];
else
[properties addObject: childRendering];
}
}
lowerTag = [tag lowercaseString];