$OpenBSD: patch-kpilot_conduits_vcalconduit_vcalRecord_cc,v 1.1 2007/01/28 13:18:51 espie Exp $
--- kpilot/conduits/vcalconduit/vcalRecord.cc.orig	Fri Jan 19 15:57:04 2007
+++ kpilot/conduits/vcalconduit/vcalRecord.cc	Fri Jan 19 15:59:45 2007
@@ -584,7 +584,7 @@ void VCalRecord::setCategory(PilotDateEn
 	if (eventCategories.size() < 1)
 	{
 		// This event has no categories.
-		de->setCategory(Pilot::Unfiled);
+		dynamic_cast<PilotRecordBase *>(de)->setCategory(Pilot::Unfiled);
 		return;
 	}
 
@@ -623,6 +623,6 @@ void VCalRecord::setCategory(PilotDateEn
 		}
 	}
 
-	de->setCategory(Pilot::Unfiled);
+	dynamic_cast<PilotRecordBase *>(de)->setCategory(Pilot::Unfiled);
 }
 
