diff src/exiv2.cc @ 1572:df4e69170f2b

compilation fixes
author nadvornik
date Mon, 27 Apr 2009 21:39:56 +0000
parents 6fdb447d87b7
children 7f9a99258d13
line wrap: on
line diff
--- a/src/exiv2.cc	Mon Apr 27 20:19:21 2009 +0000
+++ b/src/exiv2.cc	Mon Apr 27 21:39:56 2009 +0000
@@ -982,12 +982,12 @@
 #if EXIV2_TEST_VERSION(0,16,0)
 			Exiv2::Xmpdatum *xmpdatum;
 #endif
-			if ((exifdatum = dynamic_cast<Exiv2::Exifdatum *>(metadatum)))
+			if ((exifdatum = dynamic_cast<Exiv2::Exifdatum *>(&item)))
 				stream << *exifdatum;
-			else if ((iptcdatum = dynamic_cast<Exiv2::Iptcdatum *>(metadatum)))
+			else if ((iptcdatum = dynamic_cast<Exiv2::Iptcdatum *>(&item)))
 				stream << *iptcdatum;
 #if EXIV2_TEST_VERSION(0,16,0)
-			else if ((xmpdatum = dynamic_cast<Exiv2::Xmpdatum *>(metadatum)))
+			else if ((xmpdatum = dynamic_cast<Exiv2::Xmpdatum *>(&item)))
 				stream << *xmpdatum;
 #endif
 			str = stream.str();