From kde-pim Thu Jan 29 13:29:07 2009 From: "David Jarvie" Date: Thu, 29 Jan 2009 13:29:07 +0000 To: kde-pim Subject: [Kde-pim] Bug in akonadi/resources/ical/icalresource.cpp ? Message-Id: <124b9396824975643452e2b7adb19db7.squirrel () www ! sensical ! net> X-MARC-Message: https://marc.info/?l=kde-pim&m=123323582524331 There appears to be a bug in akonadi/resources/ical/icalresource.cpp, in ICalResource::itemChanged(). The line *incidence = *(payload.get()); assumes that operator=() is virtual, but that not being the case it will only copy the base Incidence class part of what payload.get() returns - if it's an Event, for example, the Event d-pointer won't be copied. Even if it did work, it should first check that the Incidence sub-class type is the same on both sides of the assignment. Or am I completely mistaken? -- David Jarvie. KAlarm author & maintainer. http://www.astrojar.org.uk/kalarm _______________________________________________ KDE PIM mailing list kde-pim@kde.org https://mail.kde.org/mailman/listinfo/kde-pim KDE PIM home page at http://pim.kde.org/