gnokii-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-19


From: Pawel Kot
Subject: [SCM] libgnokii and core programs branch, master, updated. rel_0_6_28-193-g63b564b
Date: Wed, 07 Apr 2010 15:00:52 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "libgnokii and core programs".

The branch, master has been updated
       via  63b564b1f6de46f95bec9e39f71589548f2fd2c5 (commit)
      from  d6497d8be2d71f6671f1068dd1d691ce7886bab7 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/gnokii.git/commit/?id=63b564b1f6de46f95bec9e39f71589548f2fd2c5


commit 63b564b1f6de46f95bec9e39f71589548f2fd2c5
Author: Pawel Kot <address@hidden>
Date:   Wed Apr 7 16:16:29 2010 +0200

    Fix parsing recurrence information from ics file.

diff --git a/common/vcal.c b/common/vcal.c
index 43ffae9..c266039 100644
--- a/common/vcal.c
+++ b/common/vcal.c
@@ -502,7 +502,7 @@ static int gn_ical2calnote_real(icalcomponent *comp, 
gn_calnote *calnote, int id
                }
 
                /* recurrence */
-               rrule = icalcomponent_get_first_property(comp, 
ICAL_RRULE_PROPERTY);
+               rrule = icalcomponent_get_first_property(compresult, 
ICAL_RRULE_PROPERTY);
                if (rrule) {
                        recur = icalproperty_get_rrule(rrule);
                        calnote->occurrences = recur.count;
@@ -510,13 +510,13 @@ static int gn_ical2calnote_real(icalcomponent *comp, 
gn_calnote *calnote, int id
                        case ICAL_SECONDLY_RECURRENCE:
                                dprintf("Not suppported recurrence type. 
Aproximating recurrence\n");
                                calnote->recurrence = recur.interval / 3600;
-                               if (calnote->recurrence)
+                               if (!calnote->recurrence)
                                        calnote->recurrence = 1;
                                break;
                        case ICAL_MINUTELY_RECURRENCE:
                                dprintf("Not suppported recurrence type. 
Aproximating recurrence\n");
                                calnote->recurrence = recur.interval / 60;
-                               if (calnote->recurrence)
+                               if (!calnote->recurrence)
                                        calnote->recurrence = 1;
                                break;
                        case ICAL_HOURLY_RECURRENCE:

-----------------------------------------------------------------------

Summary of changes:
 common/vcal.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
libgnokii and core programs




reply via email to

[Prev in Thread] Current Thread [Next in Thread]