From b5fb0b8ff560f0c562fe34fe0f052e0dca224ac3 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 24 Aug 2010 13:41:21 +0000 Subject: [PATCH] See Changelog. Monotone-Parent: 2b96d00aec89e2290a01e1ee04bdc8cee5487139 Monotone-Revision: cbeb049178fb31d19a533abf22a87b401926032f Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2010-08-24T13:41:21 Monotone-Branch: ca.inverse.sogo --- SOPE/NGCards/CardElement.m | 5 ++++- SOPE/NGCards/ChangeLog | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/SOPE/NGCards/CardElement.m b/SOPE/NGCards/CardElement.m index 80b6a0c7b..c9d9943d2 100644 --- a/SOPE/NGCards/CardElement.m +++ b/SOPE/NGCards/CardElement.m @@ -319,7 +319,10 @@ aValue]; index = [self _namedValue: aValueName]; if (index == NSNotFound) - [self addValue: newValue]; + { + if ([aValue length]) + [self addValue: newValue]; + } else { if ([aValue length]) diff --git a/SOPE/NGCards/ChangeLog b/SOPE/NGCards/ChangeLog index 64682c35a..ce782ad2d 100644 --- a/SOPE/NGCards/ChangeLog +++ b/SOPE/NGCards/ChangeLog @@ -1,3 +1,8 @@ +2010-08-24 Francis Lachapelle + + * CardElement.m (-setNamedValue:to:): don't add the value if nil + and not already defined. + 2010-08-19 Wolfgang Sourdeau * iCalAlarm.m (-setComment, -setSummary, -setAction)